return true;
}
-int cgroup_get(struct lxc_conf *conf, const char *filename,
- char *buf, size_t len,
- const char *name, const char *lxcpath)
+int cgroup_get(struct lxc_conf *conf,
+ const char *name, const char *lxcpath,
+ const char *filename, char *buf, size_t len)
{
__do_close int unified_fd = -EBADF;
ssize_t ret;
__hidden extern int cgroup_attach(const struct lxc_conf *conf, const char *name,
const char *lxcpath, pid_t pid);
-__hidden extern int cgroup_get(struct lxc_conf *conf, const char *filename,
- char *buf, size_t len, const char *name,
- const char *lxcpath);
+__hidden extern int cgroup_get(struct lxc_conf *conf, const char *name,
+ const char *lxcpath, const char *filename,
+ char *buf, size_t len);
static inline bool pure_unified_layout(const struct cgroup_ops *ops)
{
if (is_stopped(c))
return -1;
- ret = cgroup_get(c->lxc_conf, subsys, retv, inlen, c->name, c->config_path);
+ ret = cgroup_get(c->lxc_conf, c->name, c->config_path, subsys, retv, inlen);
if (ret == ENOCGROUP2) {
cgroup_ops = cgroup_init(c->lxc_conf);
if (!cgroup_ops)