Lines Matching defs:idx0
940 int idx0, idx;
944 idx0 = kbd_allocate("kbdmux", -1, vd, vt_kbdevent, vd);
945 if (idx0 >= 0) {
946 DPRINTF(20, "%s: kbdmux allocated, idx = %d\n", __func__, idx0);
947 k0 = kbd_get_keyboard(idx0);
954 if (idx == idx0 || KBD_IS_BUSY(k))
966 idx0 = kbd_allocate("*", -1, vd, vt_kbdevent, vd);
967 if (idx0 < 0) {
972 vd->vd_keyboard = idx0;
975 return (idx0);