• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/bsd/kern/

Lines Matching refs:task

111 #include <kern/task.h>
128 #include <mach/task.h> /* for thread_create() */
219 * has its task, thread, and uthread lent to the child process,
226 * operations on the task, thread, or uthread will result in
228 * state, when a task, thread, and uthread are realized for the
238 * | | task | |
243 * v | vc_thread v | task
256 * | | task | |
261 * | v | vc_thread v | task
332 * borrow the parent task, thread, and
455 * child_proc->task != current_task(), but we duplicate it
457 * will be running in the "child" which is the parent task
477 child_proc->task = parent_proc->task;
537 * its task attributes and memory, since when we fork, we
541 if ((child_thread = cloneproc(parent_proc->task, parent_proc, spawn ? FALSE : TRUE, FALSE)) == NULL) {
552 /* child_proc = child_thread->task->proc; */
571 * child_proc->task != current_task(), but we duplicate it
573 * will be running in the "child" which is the parent task
602 * This code applies to new processes who are copying the task
685 * with the task, thread, and uthread.
743 * Parameters: parent_task parent task
756 * It creates a new task and thread (and as a side effect of the
760 * task should inherit this from the child task.
773 /* Create a new task for the child process */
784 /* Set the child process task to the new task */
785 child_proc->task = child_task;
787 /* Set child task process to child proc */
801 /* Update task for MAC framework */
823 * Tag thread as being the first thread in its task.
849 * extra Mach task and thread reference, for which the thread
915 * Parameters: parent_task The parent task to be cloned, or
916 * TASK_NULL is task characteristics
919 * task is not to inherit the VM
940 * kernel process associated with the kernel task.
1432 uthread_alloc(task_t task, thread_t thread, int noinherit)
1445 p = (proc_t) get_bsdtask_info(task);
1451 * are in the same task.
1454 * task we can leave the new thread credential NULL. If it needs
1455 * one later, it will be lazily assigned from the task's process.
1458 if ((noinherit == 0) && task == current_task() &&
1472 /* sometimes workqueue threads are created out task context */
1473 if ((task != kernel_task) && (p != PROC_NULL))
1480 if ((task != kernel_task) && p) {
1515 uthread_cleanup(task_t task, void *uthread, void * bsd_info)
1524 * task is marked as a low priority I/O type
1567 if ((task != kernel_task) && p) {
1576 if (get_bsdtask_info(task) == p) {