2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00
linux-next/drivers/tty/vt
Alan Cox 079c9534a9 vt:tackle kbd_table
Keyboard struct lifetime is easy, but the locking is not and is completely
ignored by the existing code. Tackle this one head on

- Make the kbd_table private so we can run down all direct users
- Hoick the relevant ioctl handlers into the keyboard layer
- Lock them with the keyboard lock so they don't change mid keypress
- Add helpers for things like console stop/start so we isolate the poking
  around properly
- Tweak the braille console so it still builds

There are a couple of FIXME locking cases left for ioctls that are so hideous
they should be addressed in a later patch. After this patch the kbd_table is
private and all the keyboard jiggery pokery is in one place.

This update fixes speakup and also a memory leak in the original.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-03-08 10:50:35 -08:00
..
.gitignore
consolemap.c tty: Fix memory leak in virtual console when enable unicode translation 2012-01-04 16:18:55 -08:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c vt:tackle kbd_table 2012-03-08 10:50:35 -08:00
Makefile
selection.c vt:tackle kbd_table 2012-03-08 10:50:35 -08:00
vc_screen.c tty: Add export.h for EXPORT_SYMBOL/THIS_MODULE to exporters 2011-10-31 19:31:28 -04:00
vt_ioctl.c vt:tackle kbd_table 2012-03-08 10:50:35 -08:00
vt.c vt:tackle kbd_table 2012-03-08 10:50:35 -08:00