From: Arseny Maslennikov <ar@cs.msu.ru>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.com>, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: "Vladimir D. Seleznev" <vseleznv@altlinux.org>,
Rob Landley <rob@landley.net>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH v2 0/7] TTY Keyboard Status Request
Date: Mon, 29 Jul 2019 13:56:12 +0300 [thread overview]
Message-ID: <20190729105612.GB25742@cello> (raw)
In-Reply-To: <20190625161153.29811-1-ar@cs.msu.ru>
[-- Attachment #1: Type: text/plain, Size: 4082 bytes --]
On Tue, Jun 25, 2019 at 07:11:46PM +0300, Arseny Maslennikov wrote:
> This patch series introduces TTY keyboard status request, a feature of
> the n_tty line discipline that reserves a character in struct termios
> (^T by default) and reacts to it by printing a short informational line
> to the terminal and sending a Unix signal to the tty's foreground
> process group. The processes may, in response to the signal, output a
> textual description of what they're doing.
>
> The feature has been present in a similar form at least in
> Free/Open/NetBSD; it would be nice to have something like this in Linux
> as well. There is an LKML thread[1] where users have previously
> expressed the rationale for this.
>
> The current implementation does not break existing kernel API in any
> way, since, fortunately, all the architectures supported by the kernel
> happen to have at least 1 free byte in the termios control character
> array.
>
> The series should cleanly apply to tty-next.
>
> To thoroughly test these, one might need at least a patched stty among
> other tools, so I've brought up a simple initrd generator[2] which can
> be used to create a lightweight environment to boot up in a VM and to
> fiddle with.
>
> [1] https://lore.kernel.org/lkml/1415200663.3247743.187387481.75CE9317@webmail.messagingengine.com/
> [2] https://github.com/porrided/tty-kb-status-userspace
>
> v2 <- v1: removed useless debugging bits.
>
> Discussion of v1:
> https://lore.kernel.org/lkml/20190605081906.28938-1-ar@cs.msu.ru/
>
> Arseny Maslennikov (7):
> signal.h: Define SIGINFO on all architectures
> tty: termios: Reserve space for VSTATUS in .c_cc
> n_tty: Send SIGINFO to fg pgrp on status request character
> linux/signal.h: Ignore SIGINFO by default in new tasks
> tty: Add NOKERNINFO lflag to termios
> n_tty: ->ops->write: Cut core logic out to a separate function
> n_tty: Provide an informational line on VSTATUS receipt
>
> arch/alpha/include/asm/termios.h | 4 +-
> arch/alpha/include/uapi/asm/termbits.h | 2 +
> arch/arm/include/uapi/asm/signal.h | 1 +
> arch/h8300/include/uapi/asm/signal.h | 1 +
> arch/ia64/include/asm/termios.h | 4 +-
> arch/ia64/include/uapi/asm/signal.h | 1 +
> arch/ia64/include/uapi/asm/termbits.h | 2 +
> arch/m68k/include/uapi/asm/signal.h | 1 +
> arch/mips/include/asm/termios.h | 4 +-
> arch/mips/include/uapi/asm/signal.h | 1 +
> arch/mips/include/uapi/asm/termbits.h | 2 +
> arch/parisc/include/asm/termios.h | 4 +-
> arch/parisc/include/uapi/asm/signal.h | 1 +
> arch/parisc/include/uapi/asm/termbits.h | 2 +
> arch/powerpc/include/asm/termios.h | 4 +-
> arch/powerpc/include/uapi/asm/signal.h | 1 +
> arch/powerpc/include/uapi/asm/termbits.h | 2 +
> arch/s390/include/asm/termios.h | 4 +-
> arch/s390/include/uapi/asm/signal.h | 1 +
> arch/sparc/include/asm/termios.h | 4 +-
> arch/sparc/include/uapi/asm/signal.h | 2 +
> arch/sparc/include/uapi/asm/termbits.h | 2 +
> arch/x86/include/uapi/asm/signal.h | 1 +
> arch/xtensa/include/uapi/asm/signal.h | 1 +
> arch/xtensa/include/uapi/asm/termbits.h | 2 +
> drivers/tty/Makefile | 3 +-
> drivers/tty/n_tty.c | 70 ++++-
> drivers/tty/n_tty_status.c | 337 +++++++++++++++++++++++
> include/asm-generic/termios.h | 4 +-
> include/linux/sched.h | 7 +
> include/linux/signal.h | 5 +-
> include/linux/tty.h | 7 +-
> include/uapi/asm-generic/signal.h | 1 +
> include/uapi/asm-generic/termbits.h | 2 +
> 34 files changed, 457 insertions(+), 33 deletions(-)
> create mode 100644 drivers/tty/n_tty_status.c
>
> Date: Tue, 25 Jun 2019 19:11:46 +0300
Ping.
The series should cleanly apply to 5.3-rc2 and to tty-next as of writing
this email.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2019-07-29 10:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-25 16:11 [PATCH v2 0/7] TTY Keyboard Status Request Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 1/7] signal.h: Define SIGINFO on all architectures Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 2/7] tty: termios: Reserve space for VSTATUS in .c_cc Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 3/7] n_tty: Send SIGINFO to fg pgrp on status request character Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 4/7] linux/signal.h: Ignore SIGINFO by default in new tasks Arseny Maslennikov
2019-06-25 21:32 ` Theodore Ts'o
2019-06-26 13:49 ` Arseny Maslennikov
2019-07-29 10:55 ` Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 5/7] tty: Add NOKERNINFO lflag to termios Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 6/7] n_tty: ->ops->write: Cut core logic out to a separate function Arseny Maslennikov
2019-06-25 16:11 ` [PATCH v2 7/7] n_tty: Provide an informational line on VSTATUS receipt Arseny Maslennikov
2019-07-30 16:19 ` Greg Kroah-Hartman
2019-07-31 22:23 ` Arseny Maslennikov
2019-08-01 9:20 ` Greg Kroah-Hartman
2019-08-01 10:10 ` Pavel Machek
2019-08-01 12:44 ` Rob Landley
2019-08-02 11:04 ` Arseny Maslennikov
2019-08-01 12:35 ` Rob Landley
2019-07-29 10:56 ` Arseny Maslennikov [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=20190729105612.GB25742@cello \
--to=ar@cs.msu.ru \
--cc=ebiederm@xmission.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pavel@ucw.cz \
--cc=peterz@infradead.org \
--cc=rob@landley.net \
--cc=vseleznv@altlinux.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 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.