tty drivers: Is put_char mandatory?

Norbert Rooss (zaeld@gmx.de)
Mon, 28 Oct 2002 12:38:05 +0100 (MET)


Hello!

Simple question: Is the implementation of the function put_char() for tty
drivers mandatory? (Defined in include/linux/tty_driver.h, struct tty_driver)

Because if it is not, then there is a bug in drivers/char/n_tty.c, where the
driver specific put_char gets called without a check for availability (in
function opost())

On the other hand, if it is mandatory, then there is a bug in the USB serial
part, as usbserial.c does not implement put_char()...
(drivers/usb/serial/usbserial.c)

bye
Norbert

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!

- 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/