aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r--include/linux/pid.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h
index 1e0e4e3423a6..e5865a9c58a6 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -40,6 +40,20 @@ enum pid_type
40 * processes. 40 * processes.
41 */ 41 */
42 42
43
44/*
45 * struct upid is used to get the id of the struct pid, as it is
46 * seen in particular namespace. Later the struct pid is found with
47 * find_pid_ns() using the int nr and struct pid_namespace *ns.
48 */
49
50struct upid {
51 /* Try to keep pid_chain in the same cacheline as nr for find_pid */
52 int nr;
53 struct pid_namespace *ns;
54 struct hlist_node pid_chain;
55};
56
43struct pid 57struct pid
44{ 58{
45 atomic_t count; 59 atomic_t count;
@@ -49,6 +63,8 @@ struct pid
49 /* lists of tasks that use this pid */ 63 /* lists of tasks that use this pid */
50 struct hlist_head tasks[PIDTYPE_MAX]; 64 struct hlist_head tasks[PIDTYPE_MAX];
51 struct rcu_head rcu; 65 struct rcu_head rcu;
66 int level;
67 struct upid numbers[1];
52}; 68};
53 69
54extern struct pid init_struct_pid; 70extern struct pid init_struct_pid;