norma_task_teleport.html   [plain text]

<strong>Function</strong> - "Clone" a task on a specified node.
<strong>kern_return_t   norma_task_teleport</strong>
                <strong>(task_t</strong>                             <var>parent_task</var>,
                 <strong>boolean_t</strong>                       <var>inherit_memory</var>,
                 <strong>int</strong>                                 <var>child_node</var>,
                 <strong>task_t</strong>                              <var>child_task</var><strong>);</strong>
<dt> <var>parent_task</var>
[in task send right] The port for the task from which to draw the child 
task's port rights, resource limits, and address space.
<dt> <var>inherit_memory</var>
[in scalar] Address space inheritance indicator. If true, the child task in-
herits the address space of the parent task. If false, the kernel assigns 
the child task an empty address space.
<dt> <var>child_node</var>
[in scalar] The node index of the node on which to create the child.
<dt> <var>child_task</var>
[out task send right] The kernel-assigned port name for the new 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. The parent_task is then
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_clone in that the parent task is
terminated as part of the teleport call.
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
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.
<a href="norma_task_clone.html"><strong>norma_task_clone</strong></a>,
<a href="task_create.html"><strong>task_create</strong></a>,
<a href="norma_task_create.html"><strong>norma_task_create</strong></a>,