Home
last modified time | relevance | path

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

/freebsd-11-stable/sys/sys/
HDtty.h62 struct mtx *t_mtx; /* TTY lock. */ member
168 #define tty_lock(tp) mtx_lock((tp)->t_mtx)
169 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx)
170 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx)
171 #define tty_lock_assert(tp,ma) mtx_assert((tp)->t_mtx, (ma))
172 #define tty_getlock(tp) ((tp)->t_mtx)
/freebsd-11-stable/sys/kern/
HDtty_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()
770 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc()
771 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc()
817 knlist_init_mtx(&psc->pts_inpoll.si_note, tp->t_mtx); in pts_alloc_external()
818 knlist_init_mtx(&psc->pts_outpoll.si_note, tp->t_mtx); in pts_alloc_external()
HDtty.c1066 tp->t_mtx = mutex; in tty_alloc_mutex()
1068 tp->t_mtx = &tp->t_mtxobj; in tty_alloc_mutex()
1072 knlist_init_mtx(&tp->t_inpoll.si_note, tp->t_mtx); in tty_alloc_mutex()
1073 knlist_init_mtx(&tp->t_outpoll.si_note, tp->t_mtx); in tty_alloc_mutex()
1103 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc()
1517 error = cv_wait_sig(cv, tp->t_mtx); in tty_wait()
1539 error = cv_timedwait_sig(cv, tp->t_mtx, hz); in tty_timedwait()
2326 db_printf("\tmtx: %p\n", tp->t_mtx); in DB_SHOW_COMMAND()