cgfsng: fully document struct hierarchy

parent 7a825fd0
...@@ -62,15 +62,34 @@ lxc_log_define(lxc_cgfsng, lxc); ...@@ -62,15 +62,34 @@ lxc_log_define(lxc_cgfsng, lxc);
static struct cgroup_ops cgfsng_ops; static struct cgroup_ops cgfsng_ops;
/* /* A descriptor for a mounted hierarchy
* A descriptor for a mounted hierarchy * @controllers:
* @controllers: either NULL, or a null-terminated list of all * - legacy hierarchy:
* the co-mounted controllers * Either NULL, or a null-terminated list of all the co-mounted controllers.
* @mountpoint: the mountpoint we will use. It will be either * - unified hierarchy:
* /sys/fs/cgroup/controller or /sys/fs/cgroup/controllerlist * Either NULL, or a null-terminated list of all enabled controllers.
* @base_cgroup: the cgroup under which the container cgroup path * @mountpoint:
is created. This will be either the caller's cgroup (if not * - The mountpoint we will use.
root), or init's cgroup (if root). * - legacy hierarchy:
* It will be either /sys/fs/cgroup/controller or
* /sys/fs/cgroup/controllerlist.
* - unified hierarchy:
* It will either be /sys/fs/cgroup or /sys/fs/cgroup/<mountpoint-name>
* depending on whether this is a hybrid cgroup layout (mix of legacy and
* unified hierarchies) or a pure unified cgroup layout.
* @base_cgroup:
* - The cgroup under which the container cgroup path
* is created. This will be either the caller's cgroup (if not root), or
* init's cgroup (if root).
* @fullcgpath:
* - The full path to the containers cgroup.
* @version:
* - legacy hierarchy:
* If the hierarchy is a legacy hierarchy this will be set to
* CGROUP_SUPER_MAGIC.
* - unified hierarchy:
* If the hierarchy is a legacy hierarchy this will be set to
* CGROUP2_SUPER_MAGIC.
*/ */
struct hierarchy { struct hierarchy {
char **controllers; char **controllers;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment