norma_task_create.html   [plain text]

<strong>Function</strong> - Create a remote task using task_create semantics.
<strong>kern_return_t   norma_task_create</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
inherits 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 <strong>norma_task_create</strong> function creates a new task from
<var>parent_task</var> on the specified <var>node</var> and returns the name of the 
new task in <var>child_task</var>.  The child 
task acquires shared or copied parts of the parent's address space (see
<strong>vm_inherit</strong>).  The child task initially contains no threads.
By way of comparison, tasks created by the standard <strong>task_create</strong>
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 <strong>task_create</strong>.
Only generic errors apply.
<a href="task_create.html"><strong>task_create</strong></a>,
<a href="norma_task_clone.html"><strong>norma_task_clone</strong></a>.