mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 01:31:34 +00:00
On restore find out in which sets tasks live in and move them there. Optimization note -- move tasks into cgroups _before_ fork kids to make them inherit cgroups if required. This saves a lot of time. Accessibility note -- when moving tasks into cgroups don't search for existing host mounts (they may be not available) and don't mount temporary ones (may be impossible due to user namespaces). Instead introduce service fd with a yard of mounts. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
11 lines
314 B
C
11 lines
314 B
C
#ifndef __CR_CGROUP_H__
|
|
#define __CR_CGROUP_H__
|
|
#include "asm/int.h"
|
|
struct pstree_item;
|
|
extern u32 root_cg_set;
|
|
int dump_task_cgroup(struct pstree_item *, u32 *);
|
|
int dump_cgroups(void);
|
|
int prepare_task_cgroup(struct pstree_item *);
|
|
int prepare_cgroup(void);
|
|
void fini_cgroup(void);
|
|
#endif /* __CR_CGROUP_H__ */
|