Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71445
b: refs/heads/master
c: 4c3f2ea
h: refs/heads/master
i:
  71443: 2051d9c
v: v3
  • Loading branch information
Sukadev Bhattiprolu authored and Linus Torvalds committed Oct 19, 2007
1 parent bd05107 commit 3e13065
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60347f6716aa49831ac311e04d77ccdc50dc024a
refs/heads/master: 4c3f2ead5a3dff9069a45560ba4d007c8ae2e2ee
6 changes: 6 additions & 0 deletions trunk/include/linux/init_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ extern struct group_info init_groups;
{ .first = &init_task.pids[PIDTYPE_SID].node }, \
}, \
.rcu = RCU_HEAD_INIT, \
.level = 0, \
.numbers = { { \
.nr = 0, \
.ns = &init_pid_ns, \
.pid_chain = { .next = NULL, .pprev = NULL }, \
}, } \
}

#define INIT_PID_LINK(type) \
Expand Down
16 changes: 16 additions & 0 deletions trunk/include/linux/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 3e13065

Please sign in to comment.