|
@@ -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;
|