Searched refs:video_mtx (Results 1 - 2 of 2) sorted by relevance

/freebsd-12-stable/sys/dev/syscons/
H A Dsyscons.h243 struct mtx video_mtx; member in struct:sc_softc
545 mtx_init(&(sc)->video_mtx, "syscons video lock", NULL, \
550 mtx_lock_spin(&(sc)->video_mtx); \
555 mtx_unlock_spin(&(sc)->video_mtx); \
H A Dsyscons.c1801 * - if kdb_active and video_mtx is not owned by anyone, then lock
1803 * - if !kdb_active, try to acquire video_mtx without blocking or
1805 * Note that video_mtx is especially unusable if we already own it,
1810 sp->kdb_locked = sc->video_mtx.mtx_lock == MTX_UNOWNED ||
1816 sp->mtx_locked = mtx_trylock_spin_flags(&sc->video_mtx,
1834 mtx_unlock_spin(&sc->video_mtx);
3401 mtx_destroy(&sc->video_mtx);

Completed in 50 milliseconds