While we are discussing kernel messages, it has occured to me that some
messages would be appropriate to send to the current tty. For example,
the familiar "NFS server xxx not responding". Also the processes that
cause kernel Oops!
I would think once it is decided a message should go to the current tty,
something along these lines would do:
if ( current->tty && current->tty->ldisc.num == N_TTY )
current->tty->driver.write( current->tty, 0, msg, strlen(msg) );
I think that if the tty is too full to output messages, then all that
will happen is that the message doesn't get shown, or truncated. Not the
end of the world.
-- Nick Holloway | `O O' | Home: Nick.Holloway@alfie.demon.co.uk [aka `Alfie'] | // ^ \\ | Work: Nick.Holloway@parallax.co.uk