Lines Matching defs:task

122 #include <mach/task.h>
132 #include <kern/task.h>
169 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
175 task_t task);
189 #include <kern/task.h>
713 task_t task;
755 task = current_task();
762 * creating the backing task, thread, and uthread for the child
819 * operation; in this case, we know that our task, thread, and
826 imgp->ip_new_thread = fork_create_child(task, p, FALSE, (imgp->ip_flags & IMGPF_IS_64BIT));
833 /* reset local idea of thread, uthread, task */
836 task = new_task = get_threadtask(thread);
837 map = get_task_map(task);
846 task_set_dyld_info(task, MACH_VM_MIN_ADDRESS, 0);
848 task_set_64bit(task, TRUE);
851 task_set_64bit(task, FALSE);
873 vm_map_set_user_wire_limit(get_task_map(task), p->p_rlimit[RLIMIT_MEMLOCK].rlim_cur);
896 vm_map_exec(get_task_map(task),
897 task,
920 create_unix_stack(get_task_map(task),
928 old_map = vm_map_switch(get_task_map(task));
967 task_set_dyld_info(task, load_result.all_image_info_addr,
1024 pal_dbg_set_task_name( p->task );
1124 (void) task_suspend(p->task);
1136 proc_set_task_apptype(p->task, apptype, imgp->ip_new_thread);
1143 proc_set_task_apptype(p->task, apptype, imgp->ip_new_thread);
1153 proc_set_task_apptype(p->task, apptype, NULL);
1167 proc_set_task_apptype(p->task, apptype, imgp->ip_new_thread);
1405 * and/or audit_session_spawnjoin for the current task.
1420 task_t task = p->task;
1438 else if (task_set_special_port(task,
1447 else if (task_set_exception_ports(task,
2026 * Activate the CPU usage monitor, if requested. This is done via a task-wide, per-thread CPU
2033 error = proc_set_task_ruse_cpu(p->task,
2121 psignal_vfork(p, p->task, imgp->ip_new_thread, SIGTRAP);
2209 * task/thread references to the newly spawned
3145 * mach task port to revoke it, set the P_SUGID bit,
3159 * <task port> Potentially revoked
3271 mac_task_label_update_cred(my_cred, p->task);
3277 * Have mach reset the task and thread ports.
3280 * task/thread after.
3282 ipc_task_reset(p->task);
3558 * So that mach_init task is set with uid,gid 0 token
3857 vm_map_switch_protect(get_task_map(p->task), TRUE);
3876 kr = task_get_task_access_port(p->task, &port);