The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Tilman Schmidt <tilman@imap.cc>
To: Christopher Meller <cmeller@innominate.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question on tty line discipline
Date: Sat, 03 Mar 2007 21:00:43 +0100	[thread overview]
Message-ID: <45E9D3EB.7070909@imap.cc> (raw)
In-Reply-To: <20070228134711.GA8631@innominate.com>

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

Am 28.02.2007 14:47 schrieb Christopher Meller:
> When the line discipline is set via ioctl from  user space to e.g. N_PPP and the userspace program returns without resetting  the line discipline back to N_TTY, the serial device cannot be used (ENODV) until an appropriate  ioctl (to N_TTY) is performed. Is there any reason for the fact that the line discipline is not reset by the kernel , when closing the device. 

Is that really so? While testing a line discipline I have written
myself (N_GIGASET_M101) I came to the opposite conclusion.

Specifically, when I set the line discipline on eg. /dev/ttyS1 to
N_GIGASET_M101 from the user space daemon I have written for that
purpose, and that user space daemon exits, my line discipline is
removed, ie. its .close method is called. That is true even if I
kill the user space daemon by sending it an uncaught signal.

-- 
Tilman Schmidt                          E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]

      parent reply	other threads:[~2007-03-03 19:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 13:47 Question on tty line discipline Christopher Meller
2007-02-28 15:37 ` Alan
2007-03-03 20:00 ` Tilman Schmidt [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=45E9D3EB.7070909@imap.cc \
    --to=tilman@imap.cc \
    --cc=cmeller@innominate.com \
    --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