* line discipline and tty driver
@ 2007-02-17 14:46 Mockern
2007-02-17 15:03 ` Paul Fulghum
0 siblings, 1 reply; 2+ messages in thread
From: Mockern @ 2007-02-17 14:46 UTC (permalink / raw)
To: linux-kernel
I have a question regarding line discipline:
in http://www.linux.it/~rubini/docs/serial/serial.html is shown data flow for Linux tty driver.
When it's necessary to use line discipline in tty driver (to call ldisc.write(), ldisc.read(), ldisc.receive_buf()) and when I can ignore line discipline in my tty driver?
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: line discipline and tty driver
2007-02-17 14:46 line discipline and tty driver Mockern
@ 2007-02-17 15:03 ` Paul Fulghum
0 siblings, 0 replies; 2+ messages in thread
From: Paul Fulghum @ 2007-02-17 15:03 UTC (permalink / raw)
To: Mockern; +Cc: linux-kernel
Mockern wrote:
> When it's necessary to use line discipline in tty driver
> (to call ldisc.write(), ldisc.read(), ldisc.receive_buf())
> and when I can ignore line discipline in my tty driver?
You should not call any of these from your driver.
transmit data is sent first to the line discipline
ldisc.write() which then calls into your driver write() method
your driver passes receive data to the ldisc through
the tty flip buffer functions.
--
Paul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-17 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-17 14:46 line discipline and tty driver Mockern
2007-02-17 15:03 ` Paul Fulghum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.