/freebsd/sys/kern/ |
H A D | kern_kthread.c | 202 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 D | init_main.c | 516 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 D | kern_fork.c | 625 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 D | sys_process.c | 1021 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 D | kern_exit.c | 324 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 D | kern_thr.c | 533 error = msleep((void *)td, &p->p_mtx, in kern_thr_suspend()
|
H A D | kern_clock.c | 664 msleep(&p->p_profthreads, &p->p_mtx, PPAUSE, in stopprofclock()
|
H A D | kern_sig.c | 1420 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 D | kern_racct.c | 1102 msleep(p->p_racct, &p->p_mtx, 0, "racct", in ast_racct()
|
H A D | kern_mutex.c | 1250 mtx_init(&proc0.p_mtx, "process lock", NULL, MTX_DEF | MTX_DUPOK); in mutex_init()
|
H A D | kern_thread.c | 1243 msleep(&p->p_flag, &p->p_mtx, PCATCH, "thrsgl", 0); in thread_single()
|
H A D | kern_resource.c | 1362 callout_init_mtx(&p2->p_limco, &p2->p_mtx, 0); in lim_fork()
|
H A D | kern_proc.c | 271 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 D | proc.h | 679 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 D | usb_process.c | 204 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 D | usb_process.h | 75 int usb_proc_create(struct usb_process *up, struct mtx *p_mtx,
|
/freebsd/sys/netinet/ |
H A D | tcp_hpts.c | 174 #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()
|