summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-06-10 00:06:45 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-08-16 21:55:16 -0400
commitc39ff71657773de9ba5c9a13ecc0b90065a1ddec (patch)
treefae6e903b6e2a48f38c9842b8d136b8e449cd9e1
parent3f1f6ee13ca4d467f54af2aa46b1e6aa2c18d2a0 (diff)
cgroup-util: cg_kernel_controllers(): Fix comment about including "name="
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. (cherry picked from commit f09e86bcaa012d64addd2314fa6054657a02f64c)
-rw-r--r--src/basic/cgroup-util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 038ece4b06..daa15dbfcb 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -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)