opnsense-src/sys/dev/syscons
Bruce Evans b430634b31 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 Convert files to UTF-8 2012-01-15 13:23:18 +00:00
daemon Fix sos@'s name. 2015-01-07 21:44:57 +00:00
dragon
fade Convert files to UTF-8 2012-01-15 13:23:18 +00:00
fire
green Convert files to UTF-8 2012-01-15 13:23:18 +00:00
logo Convert files to UTF-8 2012-01-15 13:23:18 +00:00
plasma Replace the cosine table with a sine table, which (due to the vagaries of 2016-01-02 16:40:37 +00:00
rain Convert files to UTF-8 2012-01-15 13:23:18 +00:00
snake Convert files to UTF-8 2012-01-15 13:23:18 +00:00
star Convert files to UTF-8 2012-01-15 13:23:18 +00:00
warp Convert files to UTF-8 2012-01-15 13:23:18 +00:00
scgfbrndr.c
schistory.c Piggyback MIPS changes and add ARM syscons support for devices with 2012-08-25 23:59:31 +00:00
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 Extend libteken to support CJK fullwidth characters. 2013-12-20 21:31:50 +00:00
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 Add tty_set_winsize(). 2012-11-03 22:21:37 +00:00
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 Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00