public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Fulghum <paulkf@microgate.com>
To: Mockern@yandex.ru
Cc: linux-kernel@vger.kernel.org
Subject: Re: line discipline and tty driver
Date: Sat, 17 Feb 2007 09:03:53 -0600	[thread overview]
Message-ID: <45D71959.2010008@microgate.com> (raw)
In-Reply-To: <45D71555.000002.20869@webmail9.yandex.ru>

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

      reply	other threads:[~2007-02-17 15:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-17 14:46 line discipline and tty driver Mockern
2007-02-17 15:03 ` Paul Fulghum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D71959.2010008@microgate.com \
    --to=paulkf@microgate.com \
    --cc=Mockern@yandex.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox