From: Christian Brauner Date: Tue, 16 Feb 2021 10:35:43 +0000 (+0100) Subject: cgroups: better document stashed file descriptors X-Git-Tag: lxc-5.0.0~285^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008ccca920fc0e5162620b444933d8dbfddc40ed;p=thirdparty%2Flxc.git cgroups: better document stashed file descriptors Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index c7abd475c..6901e0b37 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -91,11 +91,17 @@ struct hierarchy { unsigned int bpf_device_controller:1; unsigned int freezer_controller:1; - /* container cgroup fd */ + /* File descriptor for the container's cgroup @container_full_path. */ int cgfd_con; - /* limiting cgroup fd (may be equal to cgfd_con if not separated) */ + + /* + * File descriptor for the container's limiting cgroup + * @container_limit_path. + * Will be equal to @cgfd_con if no limiting cgroup has been requested. + */ int cgfd_limit; - /* monitor cgroup fd */ + + /* File descriptor for the monitor's cgroup @monitor_full_path. */ int cgfd_mon; };