kernel - Refactor kbmux arrays
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Oct 2018 01:17:36 +0000 (18:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Oct 2018 01:40:27 +0000 (18:40 -0700)
commitf57dbfa8fd2beb4db6bb5d16c73d3d5aea3ac6be
tree133ca859525784faa62bc56c5dc3afe8457c4657
parentb227f3f50d5dc0f5fdecd8f9df23e96e8521baaf
kernel - Refactor kbmux arrays

* Get rid of the generally insane dynamic reallocation code for
  these tiny arrays and set a fixed limit of 16 keyboards.

* Add a sanity check in kbd_intr() to deal with potential interrupt
  races against installation of a new keyboard.
sys/dev/misc/kbd/kbd.c
sys/dev/misc/kbd/kbdreg.h
sys/dev/misc/kbd/kbdsw.c
sys/dev/misc/kbdmux/kbdmux.c