Lines Matching defs:task
35 #include <kern/task.h>
160 printf("ledger: resource exhausted [%s] for task %p\n",
802 task_t task = thread->task;
806 ASSERT(task != NULL);
811 * Make sure this thread is up to date with regards to any task-wide per-thread
814 if ((task->rusage_cpu_flags & TASK_RUSECPU_FLAGS_PERTHR_LIMIT) &&
820 thread_set_cpulimit(THREAD_CPULIMIT_EXCEPTION, task->rusage_cpu_perthr_percentage,
821 task->rusage_cpu_perthr_interval);
823 } else if (((task->rusage_cpu_flags & TASK_RUSECPU_FLAGS_PERTHR_LIMIT) == 0) &&
834 * If the task or thread is being terminated, let's just get on with it
836 if ((l == NULL) || !task->active || task->halting || !thread->active)
1006 ledger_entry_info(task_t task, void **buf, int *len)
1014 if ((*len < 0) || ((l = task->ledger) == NULL))
1044 ledger_info(task_t task, struct ledger_info *info)
1048 if ((l = task->ledger) == NULL)
1061 ledger_limit(task_t task, struct ledger_limit_args *args)
1067 if ((l = task->ledger) == NULL)