tty_io.c - keyboard I/O

Chris Pallotta (chris@allmedia.com)
Mon, 10 Feb 1997 15:18:50 -0500



Sorry to re-post this message, my original post was Sunday 2/9 ~14:00,
who knows where it went...

I have a question regarding the function:

static int tty_write(struct inode *inode, struct file *file,
char *buf, int count);

in the file "drivers/char/tty_io.c".

Is there a way to determine, from within tty_write(), if the char(s)
in "buf" have resulted from a keyboard interrupt? To put it another
way, how do I detect which chars come from the keyboard vs. other
kernel/appl. output?

- Chris