* Question on tty line discipline
@ 2007-02-28 13:47 Christopher Meller
2007-02-28 15:37 ` Alan
2007-03-03 20:00 ` Tilman Schmidt
0 siblings, 2 replies; 3+ messages in thread
From: Christopher Meller @ 2007-02-28 13:47 UTC (permalink / raw)
To: linux-kernel
Hi,
I have a question concerning the line discipline behaviour for serial
devices.
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.
Could you please CC me on answers and comments ?
Kind regards,
Christopher Meller
--
Christopher Meller
Software engineer
Innominate Security Technologies AG
protecting industrial networks
tel: +49.30.6392-3680
fax: +49.30.6392-3307
Albert-Einstein-Str. 14
D-12489 Berlin
www.innominate.com
Register Court: AG Charlottenburg, HR B 81603
Management Board: Joachim Fietz, Dirk Seewald
Chairman of the Supervisory Board: Edward M. Stadum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on tty line discipline
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
1 sibling, 0 replies; 3+ messages in thread
From: Alan @ 2007-02-28 15:37 UTC (permalink / raw)
To: Christopher Meller; +Cc: linux-kernel
On Wed, 28 Feb 2007 14:47:12 +0100
Christopher Meller <cmeller@innominate.com> wrote:
> Hi,
>
> I have a question concerning the line discipline behaviour for serial
> devices.
> 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.
No special reason, it has simply always been that way. Getty and friends
are expected to put the tty back into a sane state.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on tty line discipline
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
1 sibling, 0 replies; 3+ messages in thread
From: Tilman Schmidt @ 2007-03-03 20:00 UTC (permalink / raw)
To: Christopher Meller; +Cc: linux-kernel
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-03 19:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.