Skip to contentSkip to conversation

tty drivers: Is put_char mandatory?

DISCUSSION Norbert Rooss 1 participant 2 messages Oct 28, 2002

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
#1 lore raw
Quoted 2 lines

Simple question: Is the implementation of the function put_char() for tty drivers mandatory?

Oh sorry, I didn't see that a default put_char() is used in this case..

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