Lines Matching full:controllers
51 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument
59 /* If not controllers are passed, enable all available controllers */ in __enable_controllers()
60 if (!controllers) { in __enable_controllers()
61 snprintf(path, sizeof(path), "%s/cgroup.controllers", in __enable_controllers()
65 log_err("Opening cgroup.controllers: %s", path); in __enable_controllers()
71 log_err("Reading cgroup.controllers: %s", path); in __enable_controllers()
73 } else if (len == 0) { /* No controllers to enable */ in __enable_controllers()
80 strncpy(enable, controllers, sizeof(enable)); in __enable_controllers()
102 * enable_controllers() - Enable cgroup v2 controllers
104 * @controllers: List of controllers to enable in cgroup.controllers format
107 * Enable given cgroup v2 controllers, if @controllers is NULL, enable all
108 * available controllers.
112 int enable_controllers(const char *relative_path, const char *controllers) in enable_controllers() argument
117 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
220 /* Enable all available controllers to increase test coverage */ in setup_cgroup_environment()