Lines Matching refs:child
140 void thread_set_child(thread_t child, int pid);
147 thread_t fork_create_child(task_t parent_task, proc_t child, int inherit_memory, int is64bit);
210 * Retval: 0 (to child process)
211 * !0 pid of child (to parent process)
219 * has its task, thread, and uthread lent to the child process,
222 * is effectively running on the child process.
225 * though discouraged, and will operate on the child process; any
227 * changes in the parent state, and, if inheritable, the child
229 * child process at execve() time, will also be effected. Given
292 retval[1] = 1; /* flag child return for user space */
295 * Drop the signal lock on the child which was taken on our
297 * received by the child in a partially constructed state.
319 * Mach thread_t of the child process
327 * parent and the child; the child copies
332 * in the child; the child address space
334 * after which the child is run.
337 * uthread to return running in the child;
338 * the child address space and other parts
340 * the child is terminated, and the parent
344 * At first it may seem strange that we return the child thread
411 * child and the tash/thread/uthread from the parent in
447 * we referenced from the parent ... with the child
461 * will be running in the "child" which is the parent task
506 * waiting for child to exec or exit, set P_PPWAIT
507 * on child, and sleep on our proc (in case of exit).
538 /* copy current thread state into the child thread (only for fork) */
550 * we referenced from the parent ... with the child
564 * will be running in the "child" which is the parent task
578 * Blow thread state information; this is what gives the child
583 * until we resume the child there. If you are in here
607 * Remove all DTrace tracepoints from the child process. We
625 * faulting will then fail to copy the helpers to the child
633 * sprlock() may fail because the child is being forked.
637 * never fails to find the child. We do not set SFORKING.
737 * Description: Common operations associated with the creation of a child
741 * child_proc child process
743 * to be inherited by the child
744 * is64bit TRUE, if the child being created will
755 * process 'child'. If the parent process address space is to
757 * task should inherit this from the child task.
770 /* Create a new task for the child process */
780 /* Set the child process task to the new task */
783 /* Set child task process to child proc */
798 /* valid to use p_ucred as child is still not running ... */
803 * Set child process BSD visible scheduler priority if nice value
809 /* Create a new thread for the child process */
841 * Notes: Attempts to create a new child process which inherits state
843 * having created an initially suspended child process with an
845 * is initially suspended. Until we resume the child process,
848 * The return information to the child is contained in the
849 * thread state structure of the new child, and does not
850 * become visible to the child through a normal return process,
857 * Important: The child thread_resume occurs before the parent returns;
859 * deterministic as to whether the parent or child is scheduled
860 * to run first. It is entirely possible that the child could
880 * Drop the signal lock on the child which was taken on our
882 * received by the child in a partially constructed state.
891 /* "Return" to the child */
917 * inherit_memory True if the child is to inherit
922 * Returns: !NULL pointer to new child thread
925 * Note: On return newly created child process has signal lock held
972 /* make child visible */
976 * Make child runnable, set start time.
1256 * Copy the parents per process open file table to the child; if
1261 * XXX may fail to copy descriptors to child
1267 /* XXX may fail to attach shm to child */
1272 * inherit the limit structure to child
1303 * no transition race should be occuring with the child yet,
1327 * creating a child that is a copy of the parent; since this