Lines Matching refs:cgroup_size
2293 int cgroup_size; in uv__get_cgroupv2_constrained_cpu() local
2302 cgroup_size = (int)strcspn(cgroup_trimmed, "\n"); /* Find the first slash */ in uv__get_cgroupv2_constrained_cpu()
2305 snprintf(path, sizeof(path), "/sys/fs/cgroup/%.*s/cpu.max", cgroup_size, in uv__get_cgroupv2_constrained_cpu()
2321 snprintf(path, sizeof(path), "/sys/fs/cgroup/%.*s/cpu.weight", cgroup_size, in uv__get_cgroupv2_constrained_cpu()
2337 int* cgroup_size) { in uv__cgroup1_find_cpu_controller() argument
2345 *cgroup_size = (int)strcspn(cgroup_cpu, "\n"); in uv__cgroup1_find_cpu_controller()
2356 int cgroup_size; in uv__get_cgroupv1_constrained_cpu() local
2359 cgroup_cpu = uv__cgroup1_find_cpu_controller(cgroup, &cgroup_size); in uv__get_cgroupv1_constrained_cpu()
2366 cgroup_size, cgroup_cpu); in uv__get_cgroupv1_constrained_cpu()
2376 cgroup_size, cgroup_cpu); in uv__get_cgroupv1_constrained_cpu()
2386 snprintf(path, sizeof(path), "/sys/fs/cgroup/%.*s/cpu.shares", cgroup_size, in uv__get_cgroupv1_constrained_cpu()