keyboard
bcopy(keyboard, new_kbd, sizeof(*keyboard)*keyboards);
free(keyboard, M_DEVBUF);
keyboard = new_kbd;
if (keyboard[index] == NULL)
keyboard[index] = kbd;
if (keyboard[kbd->kb_index] != kbd)
keyboard[kbd->kb_index] = NULL;
if (keyboard[i] == NULL)
if (!KBD_IS_VALID(keyboard[i]))
if (strcmp("*", driver) && strcmp(keyboard[i]->kb_name, driver))
if ((unit != -1) && (keyboard[i]->kb_unit != unit))
if (KBD_IS_BUSY(keyboard[index])) {
keyboard[index]->kb_token = id;
KBD_BUSY(keyboard[index]);
keyboard[index]->kb_callback.kc_func = func;
keyboard[index]->kb_callback.kc_arg = arg;
kbdd_clear_state(keyboard[index]);
if (keyboard[index] == NULL)
if (!KBD_IS_VALID(keyboard[index]))
return (keyboard[index]);
if (keyboard[kbd->kb_index] != kbd)
if (keyboard[kbd->kb_index] != kbd)
static keyboard_t **keyboard = &kbd_ini;
typedef struct keyboard keyboard_t;
struct keyboard;
struct keyboard *kbd; /* NULL if unavailable. */
sc_softc_t *sc_find_softc(struct video_adapter *adp, struct keyboard *kbd);
struct keyboard *vd_keyboard; /* (G) Keyboard. */
*sc_find_softc(struct video_adapter *adp, struct keyboard *kbd)
int keyboard(void);
keyboard();
unsigned keyboard : 1;
if (hid_device->keyboard && s->srv->uinput) {
if (hid_device->keyboard) {
if (hid_device->keyboard) {
if (found && s->srv->uinput && hid_device->keyboard)
d->keyboard = 1;
if (d->keyboard) {
if (d->keyboard && s->srv->uinput) {