Lines Matching refs:proc
45 #include <sys/proc.h>
55 #define proc_t struct proc /* Steer clear of the Darwin typedef for proc_t */
480 * table of enabled tracepoints off the proc structure.
488 printf("fasttrap_fork: sprlock(%d) returned a differt proc\n", cp->p_pid);
531 * is set on the proc structure to indicate that there is a pid provider
632 * associated proc structure because we know that at least one
1136 * We won't be able to acquire a /proc-esque lock on the process
1346 * Take another lap through the list to make sure a proc hasn't
1380 fasttrap_proc_release(fasttrap_proc_t *proc)
1384 pid_t pid = proc->ftpc_pid;
1386 lck_mtx_lock(&proc->ftpc_mtx);
1388 ASSERT(proc->ftpc_rcount != 0);
1389 ASSERT(proc->ftpc_acount <= proc->ftpc_rcount);
1391 if (--proc->ftpc_rcount != 0) {
1392 lck_mtx_unlock(&proc->ftpc_mtx);
1396 lck_mtx_unlock(&proc->ftpc_mtx);
1402 ASSERT(proc->ftpc_acount == 0);
1409 if (fprc == proc)
1416 * Something strange has happened if we can't find the proc.
1674 * retired, and drop the active count on its proc. Marking it indicates
1676 * that we're done with this provider; dropping the active the proc
1678 * exit or exec) the proc and associated providers become defunct.
2536 _fasttrap_open(dev_t dev, int flags, int devtype, struct proc *p)
2543 _fasttrap_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p)