lkml.org 
[lkml]   [2004]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 2.4 virtual terminal timing
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.073 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site