Lines Matching defs:lwp
49 * System call to create an lwp.
53 * A detached lwp (LWP_DETACHED) cannot be the specific target of
56 * returning EDEADLK because a detached lwp might create a non-detached lwp
59 * A daemon lwp (LWP_DAEMON) is a detached lwp that has the additional
61 * process: The last non-daemon lwp to call lwp_exit() causes the process
68 klwp_t *lwp;
84 * lwp_create() is disallowed for the /proc agent lwp.
120 * Tell machine specific code that we are creating a new lwp
129 lwp = lwp_create(lwp_rtt, NULL, NULL, curproc, TS_STOPPED,
134 if (lwp == NULL)
137 lwp_load(lwp, uc.uc_mcontext.gregs, thrptr);
139 t = lwptot(lwp);
141 * Copy the new lwp's lwpid into the caller's specified buffer.
146 * EFAULT, and terminate new lwp.
168 lwp_ctmpl_copy(lwp, ttolwp(curthread));
172 * Copy the syscall arguments to the new lwp's arg area
176 lwp->lwp_ap = lwp->lwp_arg;
177 lwp->lwp_arg[0] = (long)ucp;
178 lwp->lwp_arg[1] = (long)flags;
179 lwp->lwp_arg[2] = (long)new_lwp;
180 lwp->lwp_argsaved = 1;
192 * We now set the newly-created lwp running.
205 * Exit the calling lwp