Home
last modified time | relevance | path

Searched refs:p_mtx (Results 1 – 17 of 17) sorted by relevance

/freebsd/sys/kern/
H A Dkern_kthread.c202 return (msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, in kproc_suspend()
230 msleep(&p->p_siglist, &p->p_mtx, PPAUSE, "kpsusp", 0); in kproc_suspend_check()
424 return (msleep(&td->td_flags, &p->p_mtx, PPAUSE | PDROP, "suspkt", in kthread_suspend()
482 msleep(&td->td_flags, &p->p_mtx, PPAUSE, "ktsusp", 0); in kthread_suspend_check()
H A Dinit_main.c516 p->p_klist = knlist_alloc(&p->p_mtx); in proc0_init()
543 callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0); in proc0_init()
544 callout_init_mtx(&p->p_limco, &p->p_mtx, 0); in proc0_init()
H A Dkern_fork.c625 callout_init_mtx(&p2->p_itcallout, &p2->p_mtx, 0); in do_fork()
834 cv_timedwait(&p2->p_pwait, &p2->p_mtx, hz); in ast_vfork()
1065 newproc->p_klist = knlist_alloc(&newproc->p_mtx); in fork1()
H A Dsys_process.c1021 error = msleep(&p->p_flag2, &p->p_mtx, PPAUSE | PCATCH | in kern_ptrace()
1616 msleep(p, &p->p_mtx, PPAUSE, "crdmp", 0); in kern_ptrace()
1665 msleep(p, &p->p_mtx, PPAUSE, "pscrx", 0); in kern_ptrace()
H A Dkern_exit.c324 msleep(&p->p_lock, &p->p_mtx, PWAIT, "exithold", 0); in exit1()
1426 error = msleep(q, &q->p_mtx, PWAIT | PCATCH | PDROP, "wait", 0); in kern_wait6()
H A Dkern_thr.c533 error = msleep((void *)td, &p->p_mtx, in kern_thr_suspend()
H A Dkern_clock.c664 msleep(&p->p_profthreads, &p->p_mtx, PPAUSE, in stopprofclock()
H A Dkern_sig.c1420 error = msleep_sbt(&p->p_sigacts, &p->p_mtx, PPAUSE | PCATCH, in kern_sigtimedwait()
1645 while (msleep(&p->p_sigacts, &p->p_mtx, PPAUSE|PCATCH, "pause", in kern_sigsuspend()
2832 &p->p_mtx.lock_object, "Stopping for traced signal"); in ptracestop()
3245 &p->p_mtx.lock_object, "Catching SIGSTOP"); in sigprocess()
H A Dkern_racct.c1102 msleep(p->p_racct, &p->p_mtx, 0, "racct", in ast_racct()
H A Dkern_mutex.c1250 mtx_init(&proc0.p_mtx, "process lock", NULL, MTX_DEF | MTX_DUPOK); in mutex_init()
H A Dkern_thread.c1243 msleep(&p->p_flag, &p->p_mtx, PCATCH, "thrsgl", 0); in thread_single()
H A Dkern_resource.c1362 callout_init_mtx(&p2->p_limco, &p2->p_mtx, 0); in lim_fork()
H A Dkern_proc.c271 mtx_init(&p->p_mtx, "process lock", NULL, MTX_DEF | MTX_DUPOK | MTX_NEW); in proc_init()
299 mtx_destroy(&p->p_mtx); in proc_fini()
/freebsd/sys/sys/
H A Dproc.h679 struct mtx p_mtx; /* (n) Lock for this struct. */ member
959 #define PROC_LOCK(p) mtx_lock(&(p)->p_mtx)
960 #define PROC_TRYLOCK(p) mtx_trylock(&(p)->p_mtx)
961 #define PROC_UNLOCK(p) mtx_unlock(&(p)->p_mtx)
962 #define PROC_LOCKED(p) mtx_owned(&(p)->p_mtx)
963 #define PROC_WAIT_UNLOCKED(p) mtx_wait_unlocked(&(p)->p_mtx)
964 #define PROC_LOCK_ASSERT(p, type) mtx_assert(&(p)->p_mtx, (type))
/freebsd/sys/dev/usb/
H A Dusb_process.c204 usb_proc_create(struct usb_process *up, struct mtx *p_mtx, in usb_proc_create() argument
207 up->up_mtx = p_mtx; in usb_proc_create()
H A Dusb_process.h75 int usb_proc_create(struct usb_process *up, struct mtx *p_mtx,
/freebsd/sys/netinet/
H A Dtcp_hpts.c174 #define HPTS_MTX_ASSERT(hpts) mtx_assert(&(hpts)->p_mtx, MA_OWNED)
175 #define HPTS_LOCK(hpts) mtx_lock(&(hpts)->p_mtx)
176 #define HPTS_TRYLOCK(hpts) mtx_trylock(&(hpts)->p_mtx)
177 #define HPTS_UNLOCK(hpts) mtx_unlock(&(hpts)->p_mtx)
180 struct mtx p_mtx; /* Mutex for hpts */ member
1888 mtx_init(&hpts->p_mtx, "tcp_hpts_lck", in tcp_hpts_mod_load()
2043 mtx_destroy(&hpts->p_mtx); in tcp_hpts_mod_unload()