Line discipline
Samuel Thibault
samuel.thibault at ens-lyon.org
Mon Nov 21 17:36:31 EST 2016
Hello,
Okash Khawaja, on Mon 21 Nov 2016 22:32:52 +0000, wrote:
> 1. register ldisc structure in spk_tty_probe().
Registering the speakup line discipline should be done on speakup module
insertion (speakup_init), since we're supposed to do it just once.
> 2. in spk_tty_probe(), attach line discipline - like you would for /dev/ttyX
> from user space
spk_tty_probe also needs to open ttySX itsef.
> 3. in open() method of ldisc structure, take the tty_struct and cache it.
Yes.
> 4. in spk_serial_out_tty() call tty->ops->write() instead of outb().
Yes.
Samuel
More information about the Speakup
mailing list