diff options
| author | Pavel Emelyanov <[email protected]> | 2007-10-19 06:40:05 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-10-19 18:53:39 +0000 |
| commit | 8ef047aaaeb811247a5639c92e2f2ae1221a28dd (patch) | |
| tree | 296a61f66daa8ac42b3d77a53d06a97eb71155c9 /fs/proc/root.c | |
| parent | pid namespaces: add support for pid namespaces hierarchy (diff) | |
| download | kernel-8ef047aaaeb811247a5639c92e2f2ae1221a28dd.tar.gz kernel-8ef047aaaeb811247a5639c92e2f2ae1221a28dd.zip | |
pid namespaces: make alloc_pid(), free_pid() and put_pid() work with struct upid
Each struct upid element of struct pid has to be initialized properly, i.e.
its nr mst be allocated from appropriate pidmap and ns set to appropriate
namespace.
When allocating a new pid, we need to know the namespace this pid will live
in, so the additional argument is added to alloc_pid().
On the other hand, the rest of the kernel still uses the pid->nr and
pid->pid_chain fields, so these ones are still initialized, but this will be
removed soon.
Signed-off-by: Pavel Emelyanov <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Sukadev Bhattiprolu <[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
