Messages in this thread | | | Subject | Re: 2.4 virtual terminal timing | From | Alan Cox <> | Date | Wed, 10 Nov 2004 18:35:58 +0000 |
| |
On Mer, 2004-11-10 at 12:58, Tom Schouten wrote: > i am trying to find out if there is a direct path in 2.4.x from > keyboard interrupt, through console/tty stuff to process wakeup, > for a 2 thread process with one thread blocking on tty read, > running SCHED_FIFO, or a single thread process with async IO. >
You hit the keyboard. A microcontroller with a brain the size of a pea sits around for a bit works out what you hit and we get an interrupt. After that it sends it slowly over a serial link to the PC.
The tty driver figures out the characters and sends them down to the line discipline layer. The line discipline will wake the user process from that event.
At least in 2.6 the tty driver isn't doing batching for keyboard commands that I can see so it ought to be reasonably quick.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |