]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup-util: cg_kernel_controllers(): Fix comment about including "name="
authorLuke Shumaker <lukeshu@parabola.nu>
Sat, 10 Jun 2017 04:06:45 +0000 (00:06 -0400)
committerLuke Shumaker <lukeshu@parabola.nu>
Fri, 20 Jul 2018 16:12:02 +0000 (12:12 -0400)
Remove "arbitrary named hierarchies" from the list of things that
cg_kernel_controllers() might return, and clarify that "name="
pseudo-controllers are not included in the returned list.

/proc/cgroups does not contain "name=" pseudo-controllers, and
cg_kernel_controllers() makes no effort to enumerate them via a different
mechanism.

src/basic/cgroup-util.c

index 038ece4b06b1cfc7613f4513800be0b644c76f90..daa15dbfcbe1a682c105d932d6a4361880ff61d2 100644 (file)
@@ -2384,10 +2384,9 @@ int cg_kernel_controllers(Set **ret) {
 
         assert(ret);
 
-        /* Determines the full list of kernel-known controllers. Might
-         * include controllers we don't actually support, arbitrary
-         * named hierarchies and controllers that aren't currently
-         * accessible (because not mounted). */
+        /* Determines the full list of kernel-known controllers. Might include controllers we don't actually support
+         * and controllers that aren't currently accessible (because not mounted). This does not include "name="
+         * pseudo-controllers. */
 
         controllers = set_new(&string_hash_ops);
         if (!controllers)