Lines Matching refs:constraint
2304 uv__cpu_constraint* constraint) { in uv__get_cgroupv2_constrained_cpu() argument
2327 if (sscanf(buf, "%15s %llu", quota_buf, &constraint->period_length) != 2) in uv__get_cgroupv2_constrained_cpu()
2331 constraint->quota_per_period = LLONG_MAX; in uv__get_cgroupv2_constrained_cpu()
2332 else if (sscanf(quota_buf, "%lld", &constraint->quota_per_period) != 1) in uv__get_cgroupv2_constrained_cpu()
2346 constraint->proportions = (double)weight / 100.0; in uv__get_cgroupv2_constrained_cpu()
2367 uv__cpu_constraint* constraint) { in uv__get_cgroupv1_constrained_cpu() argument
2386 if (sscanf(buf, "%lld", &constraint->quota_per_period) != 1) in uv__get_cgroupv1_constrained_cpu()
2397 if (sscanf(buf, "%lld", &constraint->period_length) != 1) in uv__get_cgroupv1_constrained_cpu()
2411 constraint->proportions = (double)shares / 1024.0; in uv__get_cgroupv1_constrained_cpu()
2416 int uv__get_constrained_cpu(uv__cpu_constraint* constraint) { in uv__get_constrained_cpu() argument
2427 return uv__get_cgroupv2_constrained_cpu(cgroup, constraint); in uv__get_constrained_cpu()
2429 return uv__get_cgroupv1_constrained_cpu(cgroup, constraint); in uv__get_constrained_cpu()