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

Re: Power management over UART



On Tue, 16 May 2006, Rik van Riel wrote:

On Tue, 16 May 2006, Guennadi Liakhovetski wrote:

1) I haven't found any kernel API to talk to a tty, is there one or how
would one do it?
2) What should this driver look like? Should it be implemented as an
apmd (emulation) or just a hacked together platform-specific driver?

I wonder if a line discipline would fit, like the way ppp talks over serial ...

I thought about it, but AFAICS - no: the line discipline plugs itself in the ttydriver, like a filter, so, you anyway open a tty device and then issue an ioctl to select a line discipline to replace the original N_TTY... I may be mistaken, but that's my understanding so far.


Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/