Searched refs:PIPE_MTX (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/sys/ |
H A D | pipe.h | 142 #define PIPE_MTX(pipe) (&(pipe)->pipe_pair->pp_mtx) macro 143 #define PIPE_LOCK(pipe) mtx_lock(PIPE_MTX(pipe)) 144 #define PIPE_UNLOCK(pipe) mtx_unlock(PIPE_MTX(pipe)) 145 #define PIPE_LOCK_ASSERT(pipe, type) mtx_assert(PIPE_MTX(pipe), (type))
|
/freebsd/sys/kern/ |
H A D | sys_pipe.c | 385 knlist_init_mtx(&rpipe->pipe_sel.si_note, PIPE_MTX(rpipe)); in pipe_paircreate() 386 knlist_init_mtx(&wpipe->pipe_sel.si_note, PIPE_MTX(wpipe)); in pipe_paircreate() 573 KASSERT(!mtx_owned(PIPE_MTX(cpipe)), ("pipespace: pipe mutex locked")); in pipespace_new() 682 error = msleep(&cpipe->pipe_waiters, PIPE_MTX(cpipe), prio, in pipelock() 886 if ((error = msleep(rpipe, PIPE_MTX(rpipe), in pipe_read() 1069 error = msleep(wpipe, PIPE_MTX(wpipe), in pipe_direct_write() 1084 error = msleep(wpipe, PIPE_MTX(wpipe), in pipe_direct_write() 1106 error = msleep(wpipe, PIPE_MTX(wpipe), PRIBIO | PCATCH, in pipe_direct_write() 1241 error = msleep(wpipe, PIPE_MTX(rpipe), PRIBIO | PCATCH, in pipe_write() 1346 error = msleep(wpipe, PIPE_MTX(rpipe), in pipe_write() [all …]
|
/freebsd/sys/fs/fifofs/ |
H A D | fifo_vnops.c | 195 error = msleep(&fip->fi_readers, PIPE_MTX(fpipe), in fifo_open() 223 error = msleep(&fip->fi_writers, PIPE_MTX(fpipe), in fifo_open()
|