diff options
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r-- | include/linux/pid.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index 1e0e4e3423a..e5865a9c58a 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h @@ -40,6 +40,20 @@ enum pid_type * processes. */ + +/* + * struct upid is used to get the id of the struct pid, as it is + * seen in particular namespace. Later the struct pid is found with + * find_pid_ns() using the int nr and struct pid_namespace *ns. + */ + +struct upid { + /* Try to keep pid_chain in the same cacheline as nr for find_pid */ + int nr; + struct pid_namespace *ns; + struct hlist_node pid_chain; +}; + struct pid { atomic_t count; @@ -49,6 +63,8 @@ struct pid /* lists of tasks that use this pid */ struct hlist_head tasks[PIDTYPE_MAX]; struct rcu_head rcu; + int level; + struct upid numbers[1]; }; extern struct pid init_struct_pid; |