cgfsng: must_append_controller()

parent 7bbf242f
...@@ -258,20 +258,19 @@ static char *cg_legacy_must_prefix_named(char *entry) ...@@ -258,20 +258,19 @@ static char *cg_legacy_must_prefix_named(char *entry)
return prefixed; return prefixed;
} }
/* /* Append an entry to the clist. Do not fail. @clist must be NULL the first time
* append an entry to the clist. Do not fail. * we are called.
* *clist must be NULL the first time we are called.
* *
* We also handle named subsystems here. Any controller which is not a * We also handle named subsystems here. Any controller which is not a kernel
* kernel subsystem, we prefix 'name='. Any which is both a kernel and * subsystem, we prefix "name=". Any which is both a kernel and named subsystem,
* named subsystem, we refuse to use because we're not sure which we * we refuse to use because we're not sure which we have here.
* have here. (TODO - we could work around this in some cases by just * (TODO: We could work around this in some cases by just remounting to be
* remounting to be unambiguous, or by comparing mountpoint contents * unambiguous, or by comparing mountpoint contents with current cgroup.)
* with current cgroup)
* *
* The last entry will always be NULL. * The last entry will always be NULL.
*/ */
static void must_append_controller(char **klist, char **nlist, char ***clist, char *entry) static void must_append_controller(char **klist, char **nlist, char ***clist,
char *entry)
{ {
int newentry; int newentry;
char *copy; char *copy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment