Lines Matching refs:task
26 extern kern_return_t task_for_pid(task_port_t task, pid_t pid, task_port_t *target);
99 if (task_for_pid(mach_task_self(), pid, &ki->task) != KERN_SUCCESS) {
103 error = task_info(ki->task, TASK_BASIC_INFO, (task_info_t)&ki->tasks_info, &info_count);
118 * try to determine if this task has the split libraries
123 error = vm_region_64(ki->task, &address, &size, VM_REGION_BASIC_INFO,
132 error = task_info(ki->task, TASK_THREAD_TIMES_INFO, (task_info_t)&ki->times, &info_count);
143 error = task_info(ki->task, TASK_SCHED_TIMESHARE_INFO, (task_info_t)&ki->schedinfo.tshare, &info_count);
157 error = task_info(ki->task, TASK_SCHED_RR_INFO, (task_info_t)&ki->schedinfo.rr, &info_count);
172 error = task_info(ki->task, TASK_SCHED_FIFO_INFO, (task_info_t)&ki->schedinfo.fifo, &info_count);
189 error = task_threads(ki->task, &ki->thread_list, &ki->thread_count);
191 mach_port_deallocate(mach_task_self(),ki->task);
243 mach_port_deallocate(mach_task_self(),ki->task);