]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: better document stashed file descriptors
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 16 Feb 2021 10:35:43 +0000 (11:35 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 16 Feb 2021 10:35:43 +0000 (11:35 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgroup.h

index c7abd475c78b59faf2936cd659529d8a6244bce5..6901e0b3740379b31f2139b690fefd1f809f4740 100644 (file)
@@ -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;
 };