About how keyboard input character route to the tty?
From: Chen Bin (sunwen_ling_at_tom.com)
Date: 02/27/04
- Next message: Eric Taylor: "amd64/linux/redhat lib memory map for 32 bit apps (task_unmapped_base etc.)"
- Previous message: Frank Sweetser: "Re: TCP-Wrapper and IP-table?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Eric Taylor: "amd64/linux/redhat lib memory map for 32 bit apps (task_unmapped_base etc.)"
- Previous message: Frank Sweetser: "Re: TCP-Wrapper and IP-table?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|