Lines Matching refs:lwpid

46 idtot(proc_t *p, id_t lwpid)
50 if ((ldp = lwp_hash_lookup(p, lwpid)) != NULL)
63 idtot_and_lock(proc_t *p, id_t lwpid, kmutex_t **mpp)
68 if ((ldp = lwp_hash_lookup_and_lock(p, lwpid, mpp)) != NULL) {
80 syslwp_suspend(id_t lwpid)
87 if ((t = idtot(p, lwpid)) == NULL)
98 syslwp_continue(id_t lwpid)
104 if ((t = idtot(p, lwpid)) == NULL) {
114 lwp_kill(id_t lwpid, int sig)
125 if ((t = idtot(p, lwpid)) == NULL) {
150 * by 'lwpid' terminates. If the specified lwp terminated prior to the call
151 * to lwp_wait(), then lwp_wait() returns immediately. If 'lwpid' is zero,
153 * If 'lwpid' is not zero, then it must specify an undetached lwp in the
172 lwp_wait(id_t lwpid, id_t *departed)
190 curthread->t_waitfor = lwpid;
194 if (lwpid != 0) {
195 if ((ldp = lwp_hash_lookup(p, lwpid)) == NULL)
209 if (lwpid != 0) {
227 lwp_hash_out(p, lwpid);
230 copyout(&lwpid, departed, sizeof (id_t)))
293 if (error == 0 && lwpid != 0) {
338 if (lwpid != 0) {
339 if ((ldp = lwp_hash_lookup(p, lwpid)) == NULL)
346 if (lwpid != 0 && target_lep != NULL) {
358 lwp_detach(id_t lwpid)
367 if ((ldp = lwp_hash_lookup(p, lwpid)) == NULL)
379 lwp_hash_out(p, lwpid);
392 lwp_unpark(id_t lwpid)
399 if ((t = idtot_and_lock(p, lwpid, &mp)) == NULL) {
424 lwp_unpark_cancel(id_t lwpid)
431 if ((t = idtot_and_lock(p, lwpid, &mp)) == NULL) {
449 lwp_park(timespec_t *timeoutp, id_t lwpid)
460 if (lwpid != 0) /* unpark the other lwp, if any */
461 (void) lwp_unpark(lwpid);
553 id_t *lwpid;
562 lwpid = kmem_alloc(lwpidsz, KM_SLEEP);
565 if (copyin(lwpidp, lwpid, n * sizeof (id_t))) {
570 if ((t = idtot_and_lock(p, lwpid[i], &mp)) == NULL) {
583 kmem_free(lwpid, lwpidsz);