Searched refs:t_mtx (Results 1 – 3 of 3) sorted by relevance
| /f-stack/freebsd/sys/ |
| H A D | tty.h | 64 struct mtx *t_mtx; /* TTY lock. */ member 173 #define tty_lock(tp) mtx_lock((tp)->t_mtx) 174 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx) 175 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx) 176 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED) 177 #define tty_getlock(tp) ((tp)->t_mtx) 180 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma))
|
| /f-stack/freebsd/kern/ |
| H A D | tty_pts.c | 177 error = cv_wait_sig(&psc->pts_outwait, tp->t_mtx); in ptsdev_read() 239 error = cv_wait_sig(&psc->pts_inwait, tp->t_mtx); in ptsdev_write() 779 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc() 780 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc() 826 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc_external() 827 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc_external()
|
| H A D | tty.c | 1096 tp->t_mtx = mutex; in tty_alloc_mutex() 1098 tp->t_mtx = &tp->t_mtxobj; in tty_alloc_mutex() 1102 knlist_init_mtx(&tp->t_inpoll.si_note, tp->t_mtx); in tty_alloc_mutex() 1103 knlist_init_mtx(&tp->t_outpoll.si_note, tp->t_mtx); in tty_alloc_mutex() 1133 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc() 1556 error = cv_wait_sig(cv, tp->t_mtx); in tty_wait() 1578 error = cv_timedwait_sig(cv, tp->t_mtx, hz); in tty_timedwait() 2366 db_printf("\tmtx: %p\n", tp->t_mtx); in DB_SHOW_COMMAND()
|