Lines Matching defs:scope
54 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
1382 * PROC_POLICY_RSRCACT_THROTTLE ENOTSUP Task-wide scope only
1383 * PROC_POLICY_RSRCACT_SUSPEND Task-wide scope only ENOTSUP
1384 * PROC_POLICY_RSRCACT_TERMINATE Task-wide scope only ENOTSUP
1385 * PROC_POLICY_RSRCACT_NOTIFY_KQ Task-wide scope only ENOTSUP
1386 * PROC_POLICY_RSRCACT_NOTIFY_EXC ENOTSUP Per-thread scope only
1393 * aggregate entity (so-called "Task-wide" or "Proc-wide" scope, whereby the CPU time consumed by all threads
1394 * in the task are added together), or by any one thread in the task (so-called "per-thread" scope).
1401 * Currently, requesting notification via an exception is the only way to get per-thread scope for a
1402 * CPU limit. All other types of notifications force task-wide scope for the limit.
1408 int scope;
1419 scope = TASK_RUSECPU_FLAGS_PROC_LIMIT;
1426 scope = TASK_RUSECPU_FLAGS_DEADLINE;
1431 scope = TASK_RUSECPU_FLAGS_PERTHR_LIMIT;
1443 error = task_set_cpuusage(task, percentage, interval, deadline, scope);
1539 task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope)
1557 if (scope == TASK_RUSECPU_FLAGS_PERTHR_LIMIT) {
1569 } else if (scope == TASK_RUSECPU_FLAGS_PROC_LIMIT) {
1585 assert(scope == TASK_RUSECPU_FLAGS_DEADLINE);