X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Documentation%2Fcgroups.txt;h=d9014aa0eb68b469836b29afe932532b168a63ee;hb=64fd52a52077d3cd5a778ca031c0aaecf885eaa6;hp=c298a6690e0d67700b08b933a65a3eb4fd97cd96;hpb=44473d991332053eb3fea1e08f8a6ee2c6fb409c;p=linux-2.6 diff --git a/Documentation/cgroups.txt b/Documentation/cgroups.txt index c298a6690e..d9014aa0eb 100644 --- a/Documentation/cgroups.txt +++ b/Documentation/cgroups.txt @@ -310,8 +310,8 @@ and then start a subshell 'sh' in that cgroup: cd /dev/cgroup mkdir Charlie cd Charlie - /bin/echo 2-3 > cpus - /bin/echo 1 > mems + /bin/echo 2-3 > cpuset.cpus + /bin/echo 1 > cpuset.mems /bin/echo $$ > tasks sh # The subshell 'sh' is now running in cgroup Charlie @@ -390,6 +390,10 @@ If you have several tasks to attach, you have to do it one after another: ... # /bin/echo PIDn > tasks +You can attach the current shell task by echoing 0: + +# echo 0 > tasks + 3. Kernel API =============