* 2.4 virtual terminal timing
@ 2004-11-10 12:58 Tom Schouten
2004-11-10 18:35 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Tom Schouten @ 2004-11-10 12:58 UTC (permalink / raw)
To: linux-kernel
hi all,
kernel noob first post beware..
i am using a virtual terminal on i386 arch to do reaction time measurement
for a perception psychology vision/hearing experiment.
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.
i suspect there is no direct path to wakeup or SIGIO delivery,
so i walked the tty/console code for a day and i can't tell really.
i got very confused. i'm not using 2.6 yet (other scheduling problems).
so, questions:
- where exactly does wake-up after keyboard interrupt happen?
- if no direct path, how can i get reasonable timing from keyboard?
- anyone has keyboard driver code or incredibly dirty hack replacing tty code
that can record time stamps for keys pressed/released?
- any pointers to documentation or other hints that could put me on the right track??
i'm a bit lost
cheers
tom
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.4 virtual terminal timing
2004-11-10 12:58 2.4 virtual terminal timing Tom Schouten
@ 2004-11-10 18:35 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2004-11-10 18:35 UTC (permalink / raw)
To: Tom Schouten; +Cc: Linux Kernel Mailing List
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-10 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10 12:58 2.4 virtual terminal timing Tom Schouten
2004-11-10 18:35 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®