]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/cgroups.txt
ide-cd: convert ide_cd_queue_pc to use blk_execute_rq
[linux-2.6-omap-h63xx.git] / Documentation / cgroups.txt
index c298a6690e0d67700b08b933a65a3eb4fd97cd96..d9014aa0eb68b469836b29afe932532b168a63ee 100644 (file)
@@ -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
 =============