-<!--
+<!--
lxc: linux Container library
(C) Copyright IBM Corp. 2007, 2008
Authors:
-Daniel Lezcano <dlezcano at fr.ibm.com>
+Daniel Lezcano <daniel.lezcano at free.fr>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-->
-<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN">
+<!DOCTYPE refentry PUBLIC @docdtd@ [
+
+<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
+<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
+]>
<refentry>
<refsynopsisdiv>
<cmdsynopsis>
- <command>lxc-start <replaceable>-n name</replaceable>
- <replaceable>subsystem</replaceable> <optional>value</optional>
- </command>
+ <command>lxc-cgroup</command>
+ <arg choice="req">-n <replaceable>name</replaceable></arg>
+ <arg choice="req"><replaceable>state-object</replaceable></arg>
+ <arg choice="opt">value</arg>
</cmdsynopsis>
</refsynopsisdiv>
<title>Description</title>
<para>
- <command>lxc-cgroup</command> get or set value from the control
- group associated with the
- container <replaceable>name</replaceable>. If
- no <optional>value</optional> is specified, the value of
- the <replaceable>subsystem</replaceable> is displayed, otherwise
- it is set. The <command>lxc-cgroup</command> does not assume the
- correctness of the <replaceable>subsystem</replaceable> name, it
- is up to the user to specify the
- right <replaceable>subsystem</replaceable> name.
+ <command>lxc-cgroup</command> gets or sets the value of a
+ <replaceable>state-object</replaceable> (e.g., 'cpuset.cpus')
+ in the container's cgroup for the corresponding subsystem (e.g.,
+ 'cpuset'). If no <optional>value</optional> is specified, the
+ current value of the <replaceable>state-object</replaceable> is
+ displayed; otherwise it is set.
</para>
+ <para>
+ Note that <command>lxc-cgroup</command> does not check that the
+ <replaceable>state-object</replaceable> is valid for the running
+ kernel, or that the corresponding subsystem is contained in any
+ mounted cgroup hierarchy.
+ </para>
</refsect1>
<refsect1>
<varlistentry>
<term>
- <option>-n <replaceable>name</replaceable></option>
- </term>
- <listitem>
- <para>
- Specify the container name associated with a control group.
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
- <term>
- <option><replaceable>subsystem</replaceable></option>
+ <option><replaceable>state-object</replaceable></option>
</term>
<listitem>
<para>
- Specify the subsystem control group name.
+ Specify the state object name.
</para>
</listitem>
</varlistentry>
</term>
<listitem>
<para>
- Specify the subsystem control group value to be set.
+ Specify the value to assign to the state object.
</para>
</listitem>
</varlistentry>
</refsect1>
+ &commonoptions;
+
<refsect1>
<title>Examples</title>
<variablelist>
The container is not running.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
</variablelist>
</refsect1>
- <refsect1>
- <title>See Also</title>
-
- <simpara>
- <citerefentry>
- <refentrytitle><command>lxc.conf</command></refentrytitle>
- <manvolnum>5</manvolnum>
- </citerefentry>,
- </simpara>
-
- </refsect1>
+ &seealso;
<refsect1>
<title>Author</title>