From 27073dba221e955a528ce25d4a3a9a3d077ed3b2 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Fri, 13 Aug 2010 15:00:39 +0200 Subject: [PATCH] updates lssubsys man page Changelog from previous version - fixed jsafranek's comments this fix updatest the man page - the information about -a option behavior - added a example related to this change Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek --- doc/man/lssubsys.1 | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/doc/man/lssubsys.1 b/doc/man/lssubsys.1 index 2b62f1df..8f278d9b 100644 --- a/doc/man/lssubsys.1 +++ b/doc/man/lssubsys.1 @@ -7,20 +7,23 @@ lssubsys \- list hierarchies containing given subsystem .SH SYNOPSIS -\fBlssubsys\fR [\fB-m|--mount-points\fR] [\fB-a|--all\fR] [\fIcontroller\fR] [...] +\fBlssubsys\fR [\fB-m|--mount-points\fR] [\fIcontroller\fR] [...] +.br +\fBlssubsys\fR [\fB-m|--mount-points\fR] [\fB-a|--all\fR] .br \fBlssubsys\fR [\fB-h|--help\fR] .SH DESCRIPTION -The command list hierarchies containing all subsystems -or only given subsystem(s). +The command list hierarchies containing +the given subsystem(s) if no subsystem is defined then it +displays all mounted hierarchies. .TP .B controller -defines subsystem which hierarchy will be shown. +defines subsystem whose hierarchy is shown. If this parameter is not used then the command -list all subsystems which are present. +list all mounted subsystems. .TP .B -m, --mount-points @@ -28,12 +31,29 @@ Display mount points. .TP .B -a, --all -Display not mounted subsystems. +Display all subsystems (including not mounted ones). .TP .B -h, --help Display help and exit. +.SH EXAMPLE +Command +.B lssubsys -am +lists all subsystems which are present on the system, +mounted ones have attached the mount point: +.RS +.nf +$ lssubsys -am +ns +cpuset +cpu,devices +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), cgconfig.conf(5) \ No newline at end of file -- 2.47.2