From: Peter Hurley <peter@hurleysoftware.com>
To: Howard Chu <hyc@symas.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>,
Jiri Slaby <jslaby@suse.cz>,
Linux Kernel Mailing List <Linux-Kernel@vger.kernel.org>,
linux-serial@vger.kernel.org, "Theodore Ts'o" <tytso@mit.edu>
Subject: Re: [PATCH] n_tty: Remove LINEMODE support
Date: Mon, 19 Jan 2015 14:40:05 -0500 [thread overview]
Message-ID: <54BD5D95.2060604@hurleysoftware.com> (raw)
In-Reply-To: <54BD328F.9090208@symas.com>
On 01/19/2015 11:36 AM, Howard Chu wrote:
> Peter Hurley wrote:
[...]
>> A description of how the pty master uses EXTPROC to implement line mode would
>> be very helpful, especially to people working in the tty code (eg., me, although
>> I don't need it now).
>
> The original patch submission carried this description
> http://lkml.iu.edu/hypermail/linux/kernel/1006.2/02428.html
[from linked source]
> Paraphrased from the 1989 BSD patch by David Borman @ cray.com:
>
> These are the changes needed for the kernel to support
> LINEMODE in the server.
>
> There is a new bit in the termios local flag word, EXTPROC.
> When this bit is set, several aspects of the terminal driver
> are disabled. Input line editing, character echo, and mapping
> of signals are all disabled. This allows the telnetd to turn
> off these functions when in linemode, but still keep track of
> what state the user wants the terminal to be in.
Ok, but this should go on to describe at least the basics of
transparent local/remote line editing. Even mentioning that
it should be transparent is important.
> New ioctl:
> TIOCSIG Generate a signal to processes in the
> current process group of the pty.
Yes, but documentation should describe why this is important/required/useful.
That is, how this supports client signal handling.
> There is a new mode for packet driver, the TIOCPKT_IOCTL bit.
> When packet mode is turned on in the pty, and the EXTPROC bit
> is set, then whenever the state of the pty is changed, the
> next read on the master side of the pty will have the TIOCPKT_IOCTL
> bit set. This allows the process on the server side of the pty
> to know when the state of the terminal has changed; it can then
> issue the appropriate ioctl to retrieve the new state.
... and go on to outline in a sentence or two what the pty master
process does with this information.
IOW, _how_ does this kernel interface support LINEMODE?
Regards,
Peter Hurley
next prev parent reply other threads:[~2015-01-19 19:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-18 21:30 Peter Hurley
2015-01-18 22:09 ` Howard Chu
2015-01-18 22:22 ` Peter Hurley
2015-01-18 22:44 ` Howard Chu
2015-01-18 23:06 ` Peter Hurley
2015-01-19 4:55 ` Theodore Ts'o
2015-01-19 16:34 ` Peter Hurley
[not found] ` <54BC3771.7030204@symas.com>
[not found] ` <54BC5EC7.1090202@hurleysoftware.com>
2015-01-19 12:46 ` Howard Chu
2015-01-19 14:57 ` Peter Hurley
2015-01-19 16:36 ` Howard Chu
2015-01-19 19:09 ` Peter Hurley
2015-01-19 19:43 ` Howard Chu
2015-01-20 18:02 ` Peter Hurley
2015-01-20 18:39 ` Howard Chu
2015-01-20 18:51 ` Howard Chu
2015-01-20 19:08 ` Peter Hurley
2015-01-20 18:16 ` Peter Hurley
2015-01-19 20:31 ` Howard Chu
2015-01-20 14:53 ` Peter Hurley
2015-01-20 17:20 ` Peter Hurley
2015-01-19 19:40 ` Peter Hurley [this message]
2015-01-19 16:37 ` Theodore Ts'o
2015-01-19 17:26 ` Peter Hurley
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=54BD5D95.2060604@hurleysoftware.com \
--to=peter@hurleysoftware.com \
--cc=Linux-Kernel@vger.kernel.org \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=gregkh@linuxfoundation.org \
--cc=hyc@symas.com \
--cc=jslaby@suse.cz \
--cc=linux-serial@vger.kernel.org \
--cc=tytso@mit.edu \
/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
Powered by JetHome