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.c173 error = cv_wait_sig(&psc->pts_outwait, tp->t_mtx); in ptsdev_read()
235 error = cv_wait_sig(&psc->pts_inwait, tp->t_mtx); in ptsdev_write()
772 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc()
773 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc()
819 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc_external()
820 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc_external()
H A Dtty.c1097 tp->t_mtx = mutex; in tty_alloc_mutex()
1099 tp->t_mtx = &tp->t_mtxobj; in tty_alloc_mutex()
1103 knlist_init_mtx(&tp->t_inpoll.si_note, tp->t_mtx); in tty_alloc_mutex()
1104 knlist_init_mtx(&tp->t_outpoll.si_note, tp->t_mtx); in tty_alloc_mutex()
1136 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc()
1582 error = cv_wait_sig(cv, tp->t_mtx); in tty_wait()
1604 error = cv_timedwait_sig(cv, tp->t_mtx, hz); in tty_timedwait()
2420 db_printf("\tmtx: %p\n", tp->t_mtx); in DB_SHOW_COMMAND()