Function - Create a remote task that shares access to parent task's memory regardless of inheritance attributes.
kern_return_t norma_task_clone (task_t parent_task, boolean_t inherit_memory, int child_node, task_t child_task);
The norma_task_clone function "clones" a new task from parent_task on the specified node and returns the name of the new task in child_task. The child task acquires shared parts of the parent's address space (see vm_inherit) regardless of the inheritance set for the parent's memory regions, although the inheritance for the child's regions will be set to that of the parent's regions. The child task initially contains no threads.
By way of comparison, tasks created by the standard task_create primitive are created on the same node as the parent.
Other than being created on a different node, the new task has the same properties as if created by task_create.
This call differs from norma_task_create in that the inheritance set for the parent's memory regions is ignored; the child always shares memory with the parent.
This call is intended to support process migration, where the inheritance semantics of norma_task_create would break migrated programs that depended upon sharing relationships remaining after migration.
This call is not a true task migration call, in that it does not migrate the port space, threads, and other non-address-space attributes of the task.
Only generic errors apply.
Functions: task_create, norma_task_create.