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.
This commit is contained in:
parent
93dbdf6cb1
commit
f09e86bcaa
|
@ -2384,10 +2384,9 @@ int cg_kernel_controllers(Set **ret) {
|
||||||
|
|
||||||
assert(ret);
|
assert(ret);
|
||||||
|
|
||||||
/* Determines the full list of kernel-known controllers. Might
|
/* Determines the full list of kernel-known controllers. Might include controllers we don't actually support
|
||||||
* include controllers we don't actually support, arbitrary
|
* and controllers that aren't currently accessible (because not mounted). This does not include "name="
|
||||||
* named hierarchies and controllers that aren't currently
|
* pseudo-controllers. */
|
||||||
* accessible (because not mounted). */
|
|
||||||
|
|
||||||
controllers = set_new(&string_hash_ops);
|
controllers = set_new(&string_hash_ops);
|
||||||
if (!controllers)
|
if (!controllers)
|
||||||
|
|
Loading…
Reference in a new issue