Initialize numericals for multilevel model (see [PREP 5/14]) Signed-off-by: Pavel Emelianov <xemul@xxxxxxxxxx> --- include/linux/init_task.h | 15 +++++++++++++++ kernel/pid.c | 3 +++ 2 files changed, 18 insertions(+) --- ./include/linux/init_task.h.multiinitpid 2007-06-15 15:24:00.000000000 +0400 +++ ./include/linux/init_task.h 2007-06-15 15:34:43.000000000 +0400 @@ -104,6 +104,21 @@ extern struct group_info init_groups; .pid_chain = { .next = NULL, .pprev = NULL }, \ #endif + +#ifdef CONFIG_PID_NS_MULTILEVEL +#define INIT_PID_NUMBER { \ + .nr = 0, \ + .ns = &init_pid_ns, \ + .pid = &init_struct_pid, \ + .pid_chain = { .next = NULL, .pprev = NULL }, \ + .nr_chain = { .next = NULL, .pprev = NULL }, \ + .next = NULL, \ +} + +#define INIT_STRUCT_PID_NRS \ + .pid_nrs = &init_pid_number, \ + +#endif #endif #define INIT_STRUCT_PID { \ --- ./kernel/pid.c.multiinitpid 2007-06-15 15:28:22.000000000 +0400 +++ ./kernel/pid.c 2007-06-15 15:34:43.000000000 +0400 @@ -34,6 +34,9 @@ static struct hlist_head *pid_hash; static int pidhash_shift; static struct kmem_cache *pid_cachep; +#ifdef CONFIG_PID_NS_MULTILEVEL +static struct pid_number init_pid_number = INIT_PID_NUMBER; +#endif struct pid init_struct_pid = INIT_STRUCT_PID; int pid_max = PID_MAX_DEFAULT; _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers