From: Ivana Hutarova Varekova Date: Fri, 13 Aug 2010 13:01:18 +0000 (+0200) Subject: adds option -i description to lssubsys man page X-Git-Tag: v0.37.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5485a12544b525255fab7ec940a777465810e2cf;p=thirdparty%2Flibcgroup.git adds option -i description to lssubsys man page 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 Signed-off-by: Jan Safranek --- diff --git a/doc/man/lssubsys.1 b/doc/man/lssubsys.1 index 8f278d9b..69426b59 100644 --- a/doc/man/lssubsys.1 +++ b/doc/man/lssubsys.1 @@ -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),