From: Christian Brauner Date: Mon, 10 Sep 2018 14:27:18 +0000 (+0200) Subject: cgroups: add monitor_create() X-Git-Tag: lxc-3.1.0~98^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6439f06e788014cfeda5feb86e4347370502b538;p=thirdparty%2Flxc.git cgroups: add monitor_create() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 1246c8f98..bf8ec4ddb 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1232,8 +1232,8 @@ static void remove_path_for_hierarchy(struct hierarchy *h, char *cgname) /* Try to create the same cgroup in all hierarchies. Start with cgroup_pattern; * next cgroup_pattern-1, -2, ..., -999. */ -__cgfsng_ops__ static inline bool cgfsng_create(struct cgroup_ops *ops, - struct lxc_handler *handler) +__cgfsng_ops__ static inline bool cgfsng_payload_create(struct cgroup_ops *ops, + struct lxc_handler *handler) { int i; size_t len; diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index d3f834c4c..ae701122f 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -129,6 +129,7 @@ struct cgroup_ops { bool (*data_init)(struct cgroup_ops *ops); void (*destroy)(struct cgroup_ops *ops, struct lxc_handler *handler); + bool (*monitor_create)(struct cgroup_ops *ops, struct lxc_handler *handler); bool (*payload_create)(struct cgroup_ops *ops, struct lxc_handler *handler); bool (*payload_enter)(struct cgroup_ops *ops, pid_t pid); const char *(*get_cgroup)(struct cgroup_ops *ops, const char *controller);