]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
adds option -i description to lssubsys man page
authorIvana Hutarova Varekova <varekova@redhat.com>
Fri, 13 Aug 2010 13:01:18 +0000 (15:01 +0200)
committerJan Safranek <jsafrane@redhat.com>
Thu, 19 Aug 2010 10:29:03 +0000 (12:29 +0200)
Changelog:
- fixed the typos from Eric Brower comment

This patch adds  -i option description to lssubsys man-page
(example included too)

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
doc/man/lssubsys.1

index 8f278d9b2378a05e438059d883ef9dc96ee3a65d..69426b59522972aa1d00e0075b6082c12f20464b 100644 (file)
@@ -9,7 +9,7 @@ lssubsys \- list hierarchies containing given subsystem
 .SH SYNOPSIS
 \fBlssubsys\fR  [\fB-m|--mount-points\fR] [\fIcontroller\fR] [...]
 .br
-\fBlssubsys\fR  [\fB-m|--mount-points\fR] [\fB-a|--all\fR]
+\fBlssubsys\fR  [\fB-m|--mount-points\fR] [\fB-i|--hierarchies\fR] [\fB-a|--all\fR]
 .br
 \fBlssubsys\fR  [\fB-h|--help\fR]
 
@@ -33,6 +33,13 @@ Display mount points.
 .B -a, --all
 Display all subsystems (including not mounted ones).
 
+.TP
+.B -i, --hierarchies
+Display attached hierarchy number, if the subsystem is in a hierarchy.
+If the option
+.B -m
+is used too, then the hierarchy number is shown only for not mounted hierarchies.
+
 .TP
 .B -h, --help
 Display help and exit.
@@ -53,6 +60,26 @@ memory /cgroup/memory
 freezer /cgroup/freezer
 net_cls /cgroup/net_cls
 .fi
+.RE
+.LP
+Command
+.B lssubsys -ami
+lists all subsystems which are present on the system,
+mounted subsystems have attached the mount point,
+not mounted ones which are in some hierarchy have attached the hierarchy number:
+.RS
+.nf
+$ lssubsys -ami
+ns
+cpuset 5
+cpu,devices 6
+cpuacct /cgroup/cpuacct
+memory /cgroup/memory
+freezer /cgroup/freezer
+net_cls /cgroup/net_cls
+.fi
+
+
 .RE
 .SH SEE ALSO
 lscgroup (1), cgcreate (1), cgdelete (1),