X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Flinux%2Fpid_namespace.h;h=38d10326246afbbec371b5cddc2beaff37f1dd48;hb=38460b48d06440de46b34cb778bd6c4855030754;hp=caff5283d15c6e11fe838ffad6b2877077af490e;hpb=caafa4324335aeb11bc233d5f87aca8cce30beba;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index caff528..38d1032 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h @@ -14,6 +14,8 @@ struct pidmap { #define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8) +struct bsd_acct_struct; + struct pid_namespace { struct kref kref; struct pidmap pidmap[PIDMAP_ENTRIES]; @@ -25,6 +27,9 @@ struct pid_namespace { #ifdef CONFIG_PROC_FS struct vfsmount *proc_mnt; #endif +#ifdef CONFIG_BSD_PROCESS_ACCT + struct bsd_acct_struct *bacct; +#endif }; extern struct pid_namespace init_pid_ns; @@ -74,15 +79,8 @@ static inline void zap_pid_ns_processes(struct pid_namespace *ns) } #endif /* CONFIG_PID_NS */ -static inline struct pid_namespace *task_active_pid_ns(struct task_struct *tsk) -{ - return tsk->nsproxy->pid_ns; -} - -static inline struct task_struct *task_child_reaper(struct task_struct *tsk) -{ - BUG_ON(tsk != current); - return tsk->nsproxy->pid_ns->child_reaper; -} +extern struct pid_namespace *task_active_pid_ns(struct task_struct *tsk); +void pidhash_init(void); +void pidmap_init(void); #endif /* _LINUX_PID_NS_H */