Re: tty_io.c - kbd input

Theodore Y. Ts'o (tytso@MIT.EDU)
Mon, 10 Feb 1997 15:05:27 -0500

Date: Sun, 9 Feb 1997 16:00:47 -0500
From: Chris Pallotta <>

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 keyboard chars from other kernel/appl. output?

What are you trying to do, and why do you care? It sounds like you want
to seriously violate an abstraction barrier, and there's probably a
better way of doing things.

- Ted