Searched refs:p_refcount (Results 1 - 2 of 2) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dkern_proc.c410 p->p_refcount++;
421 if (p->p_refcount > 0) {
422 p->p_refcount--;
423 if ((p->p_refcount == 0) && ((p->p_listflag & P_LIST_DRAINWAIT) == P_LIST_DRAINWAIT)) {
425 wakeup(&p->p_refcount);
479 while (p->p_refcount) {
481 msleep(&p->p_refcount, proc_list_mlock, 0, "proc_refdrain", 0) ;
586 if (p->p_refcount != 0)
587 panic("proc being freed and pending refcount %p:%d\n", p, p->p_refcount);
/darwin-on-arm/xnu/bsd/sys/
H A Dproc_internal.h256 int p_refcount; /* number of outstanding users(LL) */ member in struct:proc

Completed in 24 milliseconds