Home
last modified time | relevance | path

Searched refs:t_mtx (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/sys/
H A Dtty.h62 struct mtx *t_mtx; /* TTY lock. */ member
171 #define tty_lock(tp) mtx_lock((tp)->t_mtx)
172 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx)
173 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx)
174 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED)
175 #define tty_getlock(tp) ((tp)->t_mtx)
178 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma))
/freebsd/sys/kern/
H A Dtty_pts.c174 error = cv_wait_sig(&psc->pts_outwait, tp->t_mtx); in ptsdev_read()
236 error = cv_wait_sig(&psc->pts_inwait, tp->t_mtx); in ptsdev_write()
771 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc()
772 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc()
818 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc_external()
819 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc_external()
H A Dtty.c1096 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()
1135 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc()
1577 error = cv_wait_sig(cv, tp->t_mtx); in tty_wait()
1599 error = cv_timedwait_sig(cv, tp->t_mtx, hz); in tty_timedwait()
2399 db_printf("\tmtx: %p\n", tp->t_mtx); in DB_SHOW_COMMAND()