Lines Matching refs:td_proc
335 struct proc *p = td->td_proc;
387 struct proc *p = td->td_proc;
720 PROC_LOCK(td->td_proc);
721 if (racct_add(td->td_proc, RACCT_NSHM, 1)) {
722 PROC_UNLOCK(td->td_proc);
725 if (racct_add(td->td_proc, RACCT_SHMSIZE, size)) {
726 racct_sub(td->td_proc, RACCT_NSHM, 1);
727 PROC_UNLOCK(td->td_proc);
730 PROC_UNLOCK(td->td_proc);
743 PROC_LOCK(td->td_proc);
744 racct_sub(td->td_proc, RACCT_NSHM, 1);
745 racct_sub(td->td_proc, RACCT_SHMSIZE, size);
746 PROC_UNLOCK(td->td_proc);
760 shmseg->u.shm_cpid = td->td_proc->p_pid;