diff options
Diffstat (limited to 'kernel/pid.c')
-rw-r--r-- | kernel/pid.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 3e2cf8100acc..36aa02ff17d6 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
@@ -84,21 +84,6 @@ struct pid_namespace init_pid_ns = { | |||
84 | }; | 84 | }; |
85 | EXPORT_SYMBOL_GPL(init_pid_ns); | 85 | EXPORT_SYMBOL_GPL(init_pid_ns); |
86 | 86 | ||
87 | int is_container_init(struct task_struct *tsk) | ||
88 | { | ||
89 | int ret = 0; | ||
90 | struct pid *pid; | ||
91 | |||
92 | rcu_read_lock(); | ||
93 | pid = task_pid(tsk); | ||
94 | if (pid != NULL && pid->numbers[pid->level].nr == 1) | ||
95 | ret = 1; | ||
96 | rcu_read_unlock(); | ||
97 | |||
98 | return ret; | ||
99 | } | ||
100 | EXPORT_SYMBOL(is_container_init); | ||
101 | |||
102 | /* | 87 | /* |
103 | * Note: disable interrupts while the pidmap_lock is held as an | 88 | * Note: disable interrupts while the pidmap_lock is held as an |
104 | * interrupt might come in and do read_lock(&tasklist_lock). | 89 | * interrupt might come in and do read_lock(&tasklist_lock). |