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

/xnu-2782.1.97/bsd/kern/
H A Dkern_proc.c423 p->p_refcount++;
434 if (p->p_refcount > 0) {
435 p->p_refcount--;
436 if ((p->p_refcount == 0) && ((p->p_listflag & P_LIST_DRAINWAIT) == P_LIST_DRAINWAIT)) {
438 wakeup(&p->p_refcount);
495 while (p->p_refcount) {
497 msleep(&p->p_refcount, proc_list_mlock, 0, "proc_refdrain", 0) ;
602 if (p->p_refcount != 0)
603 panic("proc being freed and pending refcount %p:%d\n", p, p->p_refcount);
/xnu-2782.1.97/bsd/sys/
H A Dproc_internal.h258 int p_refcount; /* number of outstanding users(LL) */ member in struct:proc

Completed in 33 milliseconds