Add cgget man page.

Signed-off-by: Jan Safranek <[email protected]>
---

 doc/man/Makefile.am |    2 +-
 doc/man/cgget.1     |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++
 doc/man/cgset.1     |    2 +-
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 doc/man/cgget.1

diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 4966571..c744917 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,5 +1,5 @@
 man_MANS = cgclassify.1 cgconfig.conf.5 cgconfigparser.8 cgexec.1 cgred.conf.5 
\
-           cgrules.conf.5 cgrulesengd.8 cgcreate.1 cgset.1 cgclear.1
+           cgrules.conf.5 cgrulesengd.8 cgcreate.1 cgset.1 cgclear.1 cgget.1
 
 EXTRA_DIST = $(man_MANS)
 
diff --git a/doc/man/cgget.1 b/doc/man/cgget.1
new file mode 100644
index 0000000..485d562
--- /dev/null
+++ b/doc/man/cgget.1
@@ -0,0 +1,59 @@
+.\" Copyright (C) 2010 Red Hat, Inc. All Rights Reserved.
+.\" Written by Jan Safranek <[email protected]>
+
+.TH CGGET  1 2010-01-18 "Linux" "libcgroup Manual"
+.SH NAME
+
+cgget \- print parameter(s) of given group(s)
+
+.SH SYNOPSIS
+\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-r\fR <\fIname\fR>] <\fBcgroup_path\fR> 
...
+
+.SH DESCRIPTION
+The command prints the parameter(s) of input cgroup(s).
+
+.TP
+.B <path>
+is the name of the cgroup which should be read.
+This parameter can be used multiple times.
+
+.TP
+.B -r <name>
+defines parameter to display.
+This option can be used multiple times.
+
+.TP
+.B -n
+do not print headers, i.e. name of groups.
+
+.TP
+.B -v
+print only values, not parameter names.
+
+.SH EXAMPLES
+.nf
+$ cgget -r cpuset.cpus -r cpuset.mems first second
+first:
+cpuset.cpus=0-1
+cpuset.mems=0
+
+second:
+cpuset.cpus=0
+cpuset.mems=0
+
+$ cgget -n -r cpuset.cpus -r cpuset.mems first second
+cpuset.cpus=0-1
+cpuset.mems=0
+cpuset.cpus=0
+cpuset.mems=0
+
+$ cgget -nv -r cpuset.cpus -r cpuset.mems first second
+0-1
+0
+0
+0
+.fi
+
+.SH SEE ALSO
+cgsules.conf (1), cgcreate (1), cgget (1)
+
diff --git a/doc/man/cgset.1 b/doc/man/cgset.1
index 5f6e062..94e6225 100644
--- a/doc/man/cgset.1
+++ b/doc/man/cgset.1
@@ -30,4 +30,4 @@ defines name of cgroup whose parameters will be
 coppied to input cgroup.
 
 .SH SEE ALSO
-cgsules.conf (1), cgcreate (1)
\ No newline at end of file
+cgrules.conf (1), cgcreate (1), cgget (1)


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to