From 751a624fb52ca20233e94521f27c4e935742546a Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 2 Feb 2021 18:09:29 +0100 Subject: [PATCH] cgroups: annotate cgroup_get()/cgroup_set() Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.47.2