diff options
Diffstat (limited to 'include/linux/pid_namespace.h')
-rw-r--r-- | include/linux/pid_namespace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index c471c0c6e9ce..d10cb5f75c06 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h | |||
@@ -39,6 +39,11 @@ static inline void put_pid_ns(struct pid_namespace *ns) | |||
39 | kref_put(&ns->kref, free_pid_ns); | 39 | kref_put(&ns->kref, free_pid_ns); |
40 | } | 40 | } |
41 | 41 | ||
42 | static inline struct pid_namespace *task_active_pid_ns(struct task_struct *tsk) | ||
43 | { | ||
44 | return tsk->nsproxy->pid_ns; | ||
45 | } | ||
46 | |||
42 | static inline struct task_struct *child_reaper(struct task_struct *tsk) | 47 | static inline struct task_struct *child_reaper(struct task_struct *tsk) |
43 | { | 48 | { |
44 | return init_pid_ns.child_reaper; | 49 | return init_pid_ns.child_reaper; |