commit | bef67c5a7d3a9c45e091e36625c09c0c811e2672 | [log] [tgz] |
---|---|---|
author | Li Zefan <[email protected]> | Fri Jul 04 09:59:55 2008 -0700 |
committer | Linus Torvalds <[email protected]> | Fri Jul 04 10:40:08 2008 -0700 |
tree | 9e26d7896d6bf96ac8f65cf1b47955601705a921 | |
parent | 4e0d13cbb71de2b1baf71ddd3c14f7ba8da810e5 [diff] |
cgroups: document the effect of attaching PID 0 to a cgroup Document that a pid of zero(0) can be used to refer to the current task when attaching a task to a cgroup, as in the following usage: # echo 0 > /dev/cgroup/tasks This is consistent with existing cpuset behavior. Signed-off-by: Li Zefan <[email protected]> Acked-by: Paul Jackson <[email protected]> Acked-by: Dhaval Giani <[email protected]> Cc: Paul Menage <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Andrea Righi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/Documentation/cgroups.txt b/Documentation/cgroups.txt index 824fc02..d9014aa 100644 --- a/Documentation/cgroups.txt +++ b/Documentation/cgroups.txt
@@ -390,6 +390,10 @@ ... # /bin/echo PIDn > tasks +You can attach the current shell task by echoing 0: + +# echo 0 > tasks + 3. Kernel API =============