}
// Create a new cgroup
- r = pakfire_cgroup_open(&build->cgroup, build->ctx, path, 0);
+ r = pakfire_cgroup_create(&build->cgroup, build->ctx, path, 0);
if (r) {
ERROR(build->ctx, "Could not create cgroup for build %s: %m\n", build->_id);
goto ERROR;
}
// Open the cgroup
- return pakfire_cgroup_open(parent, cgroup->ctx, path, 0);
+ return pakfire_cgroup_create(parent, cgroup->ctx, path, 0);
}
static int pakfire_cgroup_setup_devices(struct pakfire_cgroup* cgroup) {
If the cgroup doesn't exist, it will be created including any parent cgroups.
*/
-int pakfire_cgroup_open(struct pakfire_cgroup** cgroup,
+int pakfire_cgroup_create(struct pakfire_cgroup** cgroup,
struct pakfire_ctx* ctx, const char* path, int flags) {
struct pakfire_cgroup* c = NULL;
int r;
return r;
// Open the child group
- return pakfire_cgroup_open(child, cgroup->ctx, p, flags);
+ return pakfire_cgroup_create(child, cgroup->ctx, p, flags);
}
/*
} memory;
};
-int pakfire_cgroup_open(struct pakfire_cgroup** cgroup,
+int pakfire_cgroup_create(struct pakfire_cgroup** cgroup,
struct pakfire_ctx* ctx, const char* path, int flags);
struct pakfire_cgroup* pakfire_cgroup_ref(struct pakfire_cgroup* cgroup);