aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <[email protected]>2007-10-19 06:40:03 +0000
committerLinus Torvalds <[email protected]>2007-10-19 18:53:38 +0000
commit4c3f2ead5a3dff9069a45560ba4d007c8ae2e2ee (patch)
treeab47621edf01f64485c99cf2cde56762339c86f1 /fs/proc/root.c
parentpid namespaces: prepare proc_flust_task() to flush entries from multiple proc... (diff)
downloadkernel-4c3f2ead5a3dff9069a45560ba4d007c8ae2e2ee.tar.gz
kernel-4c3f2ead5a3dff9069a45560ba4d007c8ae2e2ee.zip
pid namespaces: introduce struct upid
Since task will be visible from different pid namespaces each of them have to be addressed by multiple pids. struct upid is to store the information about which id refers to which namespace. The constuciton looks like this. Each struct pid carried the reference counter and the list of tasks attached to this pid. At its end it has a variable length array of struct upid-s. Each struct upid has a numerical id (pid itself), pointer to the namespace, this ID is valid in and is hashed into a pid_hash for searching the pids. The nr and pid_chain fields are kept in struct pid for a while to make kernel still work (no patch initialize the upids yet), but it will be removed at the end of this series when we switch to upids completely. Signed-off-by: Sukadev Bhattiprolu <[email protected]> Signed-off-by: Pavel Emelyanov <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Paul Menage <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions