]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cgroups: add monitor_create()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Sep 2018 14:27:18 +0000 (16:27 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 21 Sep 2018 14:52:25 +0000 (16:52 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c
src/lxc/cgroups/cgroup.h

index 1246c8f98e90b2e177859bd51f86dd49c5597440..bf8ec4ddb3b097265a82856cafa2b7b577877224 100644 (file)
@@ -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;
index d3f834c4cd7c3fa87545b5ebb317daf0755b0b4f..ae701122f3ce5668113ec38bcfc8a1eec0100cdb 100644 (file)
@@ -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);