Re: Line discipline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux