Lines Matching defs:parent_task
308 __unused task_t parent_task,
318 task_t parent_task,
324 if (parent_task == TASK_NULL)
337 task_t parent_task,
346 if (parent_task == TASK_NULL)
395 task_t parent_task,
421 /* if inherit_memory is true, parent_task MUST not be NULL */
423 new_task->map = vm_map_fork(ledger, parent_task->map);
430 if (parent_task)
431 vm_map_set_user_wire_limit(new_task->map, (vm_size_t)parent_task->map->user_wire_limit);
477 ipc_task_init(new_task, parent_task);
509 if (parent_task != TASK_NULL) {
510 new_task->sec_token = parent_task->sec_token;
511 new_task->audit_token = parent_task->audit_token;
514 shared_region = vm_shared_region_get(parent_task);
517 if(task_has_64BitAddr(parent_task))
519 new_task->all_image_info_addr = parent_task->all_image_info_addr;
520 new_task->all_image_info_size = parent_task->all_image_info_size;
523 if (inherit_memory && parent_task->i386_ldt)
524 new_task->i386_ldt = user_ldt_copy(parent_task->i386_ldt);
526 if (inherit_memory && parent_task->affinity_space)
527 task_affinity_create(parent_task, new_task);
529 new_task->pset_hint = parent_task->pset_hint = task_choose_pset(parent_task);
530 new_task->policystate = parent_task->policystate;
532 new_task->appliedstate = parent_task->appliedstate;
533 new_task->ext_policystate = parent_task->ext_policystate;
536 new_task->ext_appliedstate = parent_task->ext_appliedstate;
575 if (vm_backing_store_low && parent_task != NULL)
576 new_task->priv_flags |= (parent_task->priv_flags&VM_BACKING_STORE_PRIV);