From: Christian Brauner Date: Tue, 2 Feb 2021 17:09:29 +0000 (+0100) Subject: cgroups: annotate cgroup_get()/cgroup_set() X-Git-Tag: lxc-5.0.0~305^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751a624fb52ca20233e94521f27c4e935742546a;p=thirdparty%2Flxc.git cgroups: annotate cgroup_get()/cgroup_set() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 327b10f72..b47a63c06 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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) {