Lines Matching refs:psp
84 dotoprocs(procset_t *psp, int (*funcp)(), char *arg) in dotoprocs() argument
96 error = checkprocset(psp); in dotoprocs()
107 if (psp->p_lid == P_MYID) { in dotoprocs()
108 psp->p_lid = getmyid(psp->p_lidtype); in dotoprocs()
110 if (psp->p_rid == P_MYID) { in dotoprocs()
111 psp->p_rid = getmyid(psp->p_ridtype); in dotoprocs()
127 if (psp->p_op == POP_AND) { in dotoprocs()
128 if (((psp->p_lidtype == P_PID) && (psp->p_ridtype == P_ALL)) || in dotoprocs()
129 ((psp->p_ridtype == P_PID) && (psp->p_lidtype == P_ALL))) { in dotoprocs()
132 pid = (psp->p_lidtype == P_PID) ? in dotoprocs()
133 psp->p_lid : psp->p_rid; in dotoprocs()
179 procinset(prp, psp) == 0) { in dotoprocs()
213 checkprocset(procset_t *psp) in checkprocset() argument
215 switch (psp->p_lidtype) { in checkprocset()
235 switch (psp->p_ridtype) { in checkprocset()
255 switch (psp->p_op) { in checkprocset()
281 procinset(proc_t *pp, procset_t *psp) in procinset() argument
291 switch (psp->p_lidtype) { in procinset()
295 if (getlwpptr(psp->p_lid) != NULL) in procinset()
300 if (pp->p_pid == psp->p_lid) in procinset()
305 if (pp->p_ppid == psp->p_lid) in procinset()
310 if (pp->p_pgrp == psp->p_lid) in procinset()
316 if (pp->p_sessp->s_sid == psp->p_lid) in procinset()
325 if (tp->t_cid == psp->p_lid) in procinset()
330 if (pp->p_task->tk_tkid == psp->p_lid) in procinset()
336 if (crgetuid(pp->p_cred) == psp->p_lid) in procinset()
343 if (crgetgid(pp->p_cred) == psp->p_lid) in procinset()
349 if (pp->p_task->tk_proj->kpj_id == psp->p_lid) in procinset()
354 if (pp->p_pool->pool_id == psp->p_lid) in procinset()
359 if (pp->p_zone->zone_id == psp->p_lid) in procinset()
364 if (PRCTID(pp) == psp->p_lid) in procinset()
381 switch (psp->p_ridtype) { in procinset()
385 if (getlwpptr(psp->p_rid) != NULL) in procinset()
390 if (pp->p_pid == psp->p_rid) in procinset()
395 if (pp->p_ppid == psp->p_rid) in procinset()
400 if (pp->p_pgrp == psp->p_rid) in procinset()
406 if (pp->p_sessp->s_sid == psp->p_rid) in procinset()
412 if (pp->p_task->tk_tkid == psp->p_rid) in procinset()
420 if (tp->t_cid == psp->p_rid) in procinset()
426 if (crgetuid(pp->p_cred) == psp->p_rid) in procinset()
433 if (crgetgid(pp->p_cred) == psp->p_rid) in procinset()
439 if (pp->p_task->tk_proj->kpj_id == psp->p_rid) in procinset()
444 if (pp->p_pool->pool_id == psp->p_rid) in procinset()
449 if (pp->p_zone->zone_id == psp->p_rid) in procinset()
454 if (PRCTID(pp) == psp->p_rid) in procinset()
471 switch (psp->p_op) { in procinset()
519 lwpinset(proc_t *pp, procset_t *psp, kthread_t *tp, int *done) in lwpinset() argument
535 switch (psp->p_lidtype) { in lwpinset()
538 if (tp->t_tid == psp->p_lid) in lwpinset()
543 if (pp->p_pid == psp->p_lid) in lwpinset()
548 if (pp->p_ppid == psp->p_lid) in lwpinset()
553 if (pp->p_pgrp == psp->p_lid) in lwpinset()
559 if (pp->p_sessp->s_sid == psp->p_lid) in lwpinset()
565 if (pp->p_task->tk_tkid == psp->p_lid) in lwpinset()
570 if (tp->t_cid == psp->p_lid) in lwpinset()
576 if (crgetuid(pp->p_cred) == psp->p_lid) in lwpinset()
583 if (crgetgid(pp->p_cred) == psp->p_lid) in lwpinset()
589 if (pp->p_task->tk_proj->kpj_id == psp->p_lid) in lwpinset()
594 if (pp->p_pool->pool_id == psp->p_lid) in lwpinset()
599 if (pp->p_zone->zone_id == psp->p_lid) in lwpinset()
604 if (PRCTID(pp) == psp->p_lid) in lwpinset()
621 switch (psp->p_ridtype) { in lwpinset()
624 if (tp->t_tid == psp->p_rid) in lwpinset()
629 if (pp->p_pid == psp->p_rid) in lwpinset()
634 if (pp->p_ppid == psp->p_rid) in lwpinset()
639 if (pp->p_pgrp == psp->p_rid) in lwpinset()
645 if (pp->p_sessp->s_sid == psp->p_rid) in lwpinset()
651 if (pp->p_task->tk_tkid == psp->p_rid) in lwpinset()
656 if (tp->t_cid == psp->p_rid) in lwpinset()
662 if (crgetuid(pp->p_cred) == psp->p_rid) in lwpinset()
669 if (crgetgid(pp->p_cred) == psp->p_rid) in lwpinset()
675 if (pp->p_task->tk_proj->kpj_id == psp->p_rid) in lwpinset()
680 if (pp->p_pool->pool_id == psp->p_rid) in lwpinset()
685 if (pp->p_zone->zone_id == psp->p_rid) in lwpinset()
690 if (PRCTID(pp) == psp->p_rid) in lwpinset()
710 switch (psp->p_op) { in lwpinset()
756 cur_inset_only(procset_t *psp) in cur_inset_only() argument
758 if (((psp->p_lidtype == P_PID && in cur_inset_only()
759 (psp->p_lid == P_MYID || in cur_inset_only()
760 psp->p_lid == ttoproc(curthread)->p_pid)) || in cur_inset_only()
761 ((psp->p_lidtype == P_LWPID) && in cur_inset_only()
762 (psp->p_lid == P_MYID || in cur_inset_only()
763 psp->p_lid == curthread->t_tid))) && in cur_inset_only()
764 psp->p_op == POP_AND && psp->p_ridtype == P_ALL) in cur_inset_only()
767 if (((psp->p_ridtype == P_PID && in cur_inset_only()
768 (psp->p_rid == P_MYID || in cur_inset_only()
769 psp->p_rid == ttoproc(curthread)->p_pid)) || in cur_inset_only()
770 ((psp->p_ridtype == P_LWPID) && in cur_inset_only()
771 (psp->p_rid == P_MYID || in cur_inset_only()
772 psp->p_rid == curthread->t_tid))) && in cur_inset_only()
773 psp->p_op == POP_AND && psp->p_lidtype == P_ALL) in cur_inset_only()
881 dotolwp(procset_t *psp, int (*funcp)(), char *arg) in dotolwp() argument
892 error = checkprocset(psp); in dotolwp()
905 if (psp->p_lid == P_MYID) { in dotolwp()
906 psp->p_lid = getmyid(psp->p_lidtype); in dotolwp()
908 if (psp->p_rid == P_MYID) { in dotolwp()
909 psp->p_rid = getmyid(psp->p_ridtype); in dotolwp()
915 if (procinset(pp, psp) || in dotolwp()
922 if (lwpinset(pp, psp, tp, &done)) { in dotolwp()