tty drivers: Is put_char mandatory?

From: Norbert Rooss (zaeld@gmx.de)
Date: Mon Oct 28 2002 - 06:38:05 EST


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/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:36 EST