About how keyboard input character route to the tty?

From: Chen Bin (sunwen_ling_at_tom.com)
Date: 02/27/04


Date: 26 Feb 2004 19:22:47 -0800

Hi,

I am very curious how our keyboard strike is transferred to the
console and finally displayed in our screen.

I know there is no keyboard entry in /dev/input directory,and there is
a input subsystem in the kernel.In keyboard.c,

static struct input_handler kbd_handler = {
        .event = kbd_event,
        .connect = kbd_connect,
        .disconnect = kbd_disconnect,
        .name = "kbd",
        .id_table = kbd_ids,
};

will be registered to the input subsystem.

I know when we press a key,there will be an interrupt raise to our
CPU,and we go to keyboard registers to read the scan code.But I can't
found where the IRQ is set up to keyboard interrupt handler.

I think it is not a simple relationship between keyboard and console.

Any help appreciated!!

Chen Bin



Relevant Pages

  • [2.6.11.7 / CLPS711x/SkyMinder] module integration issue: keyboard driver _still_ not working after
    ... a dummy/virtual serial console, ... confirmed as reasonably working, a framebuffer driver (which ... now i load the keyboard event module... ...
    (Linux-Kernel)
  • Keyboard, X, lockups, and other hardware oddities . . .
    ... that shows up on a console: 'spurious 8259A interrupt: IRQ<number-i ... 'keyboard: Timeout - AT keyboard not present' quite often this happens. ... 5)Debian-sarge-Frequent X lockups complete with looping audio. ... I assumed this was a hardware problem. ...
    (Debian-User)
  • Re: Scanf-like function for native application
    ... i bet you are reading from the terminal services keyboard. ... kid = RtlAllocateHeap; ... > NTSTATUS readStatus = STATUS_SUCCESS; ... NtBk_Print(L"Initializing console attributes...\n"); ...
    (microsoft.public.development.device.drivers)
  • Re: why is xsun running?
    ... While the console is redirected to ttya, the actual eeprom values do not ... So if you later put the keyboard in and boot, ... modified Xservers) dtlogin will try to start a local server. ... Note that running an X server on the local keyboard/framebuffer and the ...
    (comp.unix.solaris)
  • Re: AlphaServer 800 Console
    ... > after I hook up a keyboard, mouse and monitor and power the system on, ... > drives spin up but don't attempt to boot (no surprise, ... My thoughts are that the console variable is set ...
    (comp.sys.dec)