]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: must_append_controller()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 16:11:05 +0000 (17:11 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Feb 2018 14:48:12 +0000 (15:48 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index d500a1484cf92215c412eafa504b02ec43e28504..dd34bbd8347859df7a7688b16f4497bd5c72f1f5 100644 (file)
@@ -258,20 +258,19 @@ static char *cg_legacy_must_prefix_named(char *entry)
        return prefixed;
 }
 
-/*
- * append an entry to the clist.  Do not fail.
- * *clist must be NULL the first time we are called.
+/* Append an entry to the clist. Do not fail. @clist must be NULL the first time
+ * we are called.
  *
- * We also handle named subsystems here.  Any controller which is not a
- * kernel subsystem, we prefix 'name='.  Any which is both a kernel and
- * named subsystem, we refuse to use because we're not sure which we
- * have here.  (TODO - we could work around this in some cases by just
- * remounting to be unambiguous, or by comparing mountpoint contents
- * with current cgroup)
+ * We also handle named subsystems here. Any controller which is not a kernel
+ * subsystem, we prefix "name=". Any which is both a kernel and named subsystem,
+ * we refuse to use because we're not sure which we have here.
+ * (TODO: We could work around this in some cases by just remounting to be
+ * unambiguous, or by comparing mountpoint contents with current cgroup.)
  *
  * 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;
        char *copy;