Lines Matching refs:constraint
2289 uv__cpu_constraint* constraint) { in uv__get_cgroupv2_constrained_cpu() argument
2312 if (sscanf(buf, "%15s %llu", quota_buf, &constraint->period_length) != 2) in uv__get_cgroupv2_constrained_cpu()
2316 constraint->quota_per_period = LLONG_MAX; in uv__get_cgroupv2_constrained_cpu()
2317 else if (sscanf(quota_buf, "%lld", &constraint->quota_per_period) != 1) in uv__get_cgroupv2_constrained_cpu()
2331 constraint->proportions = (double)weight / 100.0; in uv__get_cgroupv2_constrained_cpu()
2352 uv__cpu_constraint* constraint) { in uv__get_cgroupv1_constrained_cpu() argument
2371 if (sscanf(buf, "%lld", &constraint->quota_per_period) != 1) in uv__get_cgroupv1_constrained_cpu()
2382 if (sscanf(buf, "%lld", &constraint->period_length) != 1) in uv__get_cgroupv1_constrained_cpu()
2396 constraint->proportions = (double)shares / 1024.0; in uv__get_cgroupv1_constrained_cpu()
2401 int uv__get_constrained_cpu(uv__cpu_constraint* constraint) { in uv__get_constrained_cpu() argument
2412 return uv__get_cgroupv2_constrained_cpu(cgroup, constraint); in uv__get_constrained_cpu()
2414 return uv__get_cgroupv1_constrained_cpu(cgroup, constraint); in uv__get_constrained_cpu()