[PATCH v2 3/3] vstatus: Display an informational message when the VSTATUS character is pressed or TIOCSTAT ioctl is called.

2022-02-06 Thread Walt Drummond
- Resident set size The message is only displayed when the tty has the VSTATUS character set, the local flags ICANON and IEXTEN are enabled and NOKERNINFO is disabled; it is always displayed when TIOCSTAT is called regardless of tty settings. Signed-off-by: Walt Drummond --- drivers/tty/Makef

[PATCH v2 2/3] status: Add user space API definitions for VSTATUS, NOKERNINFO and TIOCSTAT

2022-02-06 Thread Walt Drummond
Add definitions for the VSTATUS control character, and the NOKERNINFO local control flag in the termios struct, and add an ioctl number for the ioctl TIOCSTAT. Also add a default VSTATUS character (Ctrl-T) default valuses in termios.c_cc. Do this for all architectures. Signed-off-by: Walt

[PATCH v2 1/3] vstatus: Allow the n_tty line dicipline to write to a user tty

2022-02-06 Thread Walt Drummond
Refactor the implementation of n_tty_write() into do_n_tty_write(), and change n_tty_write() to call do_n_tty_write() after acquiring tty.termios_rwsem. This allows the n_tty line dicipline to write to a user tty via do_n_tty_write() when already holding tty.termios_rwsem. Signed-off-by: Walt

[PATCH v2 0/3] vstatus: TTY status message request

2022-02-06 Thread Walt Drummond
ags - The addition of the TIOCSTAT ioctl number None of these changes break the existing kernel api as the termios structure on all architectures has enough space in the control character array (.c_cc) for the new character. Walt Drummond (3): vstatus: Allow the n_tty line dicipline to write to

Re: [PATCH 0/3] status: TTY status message request

2022-01-29 Thread Walt Drummond
ACK, will do. On Wed, Jan 26, 2022 at 5:45 AM Greg KH wrote: > > On Mon, Jan 17, 2022 at 08:42:57PM -0800, Walt Drummond wrote: > > This patchset adds TTY status message request feature to the n_tty > > line dicipline. This feature prints a brief message containing basic >

[PATCH 0/3] status: TTY status message request

2022-01-17 Thread Walt Drummond
ray (.c_cc) for the new character, and the other changes are space agnostic. This feature is in many other Unix-like systems, both current and historical. In other implementations, this feature would also send SIGINFO to the process group; this implementation does not. Walt Drummond (3): vsta

[PATCH 2/3] vstatus: Add user space API definitions for VSTATUS, NOKERNINFO and TIOCSTAT

2022-01-17 Thread Walt Drummond
Add definitions for the VSTATUS control character, and the NOKERNINFO local control flag in the termios struct, and add an ioctl number for the ioctl TIOCSTAT. Also add a default VSTATUS character (Ctrl-T) default valuses in termios.c_cc. Do this for all architectures. Signed-off-by: Walt