]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: annotate cgroup_get()/cgroup_set()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 17:09:29 +0000 (18:09 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 17:09:29 +0000 (18:09 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 327b10f72584cdfbfc8fa6dc42d05499f607e970..b47a63c068d25fa919af43ebee2f307f98512568 100644 (file)
@@ -3501,6 +3501,7 @@ struct cgroup_ops *cgfsng_ops_init(struct lxc_conf *conf)
        return move_ptr(cgfsng_ops);
 }
 
+/* Connects to command socket therefore isn't callable from command handler. */
 int cgroup_get(struct lxc_conf *conf,
               const char *name, const char *lxcpath,
               const char *filename, char *buf, size_t len)
@@ -3526,6 +3527,7 @@ int cgroup_get(struct lxc_conf *conf,
        return ret;
 }
 
+/* Connects to command socket therefore isn't callable from command handler. */
 int cgroup_set(struct lxc_conf *conf, const char *name, const char *lxcpath,
               const char *filename, const char *value)
 {