freebsd-skq/sys/dev/syscons
bde 204861cb5f Add screen locking calls to sc cn grab and ungrab. The locking functions
just use the same mutex locking as sc cn putc so they have the same
defects.

The locking calls to acquire the lock are actually in sc cn open and close.
Ungrab has to unlock, although this opens a race window.

Change the direct mutex lock calls in sc cn putc to the new locking
functions via the open and close functions.  Putc also has to unlock, but
doesn't keep the screen open like grab.  Screen open and close reduce to
locking, except screen open for grab also attempts to switch the screen.

Keyboard locking is more difficult and still null, even when keyboard
input calls screen functions, except some of the functions have locks
too deep to work right.

This organization gives a single place to fix some of the locking.
2016-08-29 18:41:06 +00:00
..
apm
blank
daemon
dragon
fade
fire
green
logo
plasma
rain
snake
star
warp
scgfbrndr.c
schistory.c
scmouse.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
scterm-teken.c
scterm.c
scvesactl.c
scvgarndr.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
scvidctl.c
scvtb.c
syscons.c Add screen locking calls to sc cn grab and ungrab. The locking functions 2016-08-29 18:41:06 +00:00
syscons.h Less-quick fix for locking fixes in r172250. r172250 added a second 2016-08-25 13:46:52 +00:00
sysmouse.c