Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: move N_TTY_BUF_SIZE to n_tty

"N_TTY_BUF_SIZE" is private to n_tty and shall not be exposed to the
world. Definitely not in tty.h somewhere in the middle of "struct
tty_struct".

This is a remnant of moving "read_flags" to "struct n_tty_data" in
commit 3fe780b379fa ("TTY: move ldisc data from tty_struct: bitmaps").
But some cleanup was needed first (in previous patches).

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250317070046.24386-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
d2e38e71 0738abc2

+2 -1
+2
drivers/tty/n_tty.c
··· 56 56 */ 57 57 #define WAKEUP_CHARS 256 58 58 59 + #define N_TTY_BUF_SIZE 4096 60 + 59 61 /* 60 62 * This defines the low- and high-watermarks for throttling and 61 63 * unthrottling the TTY driver. These watermarks are used for
-1
include/linux/tty.h
··· 239 239 240 240 struct list_head tty_files; 241 241 242 - #define N_TTY_BUF_SIZE 4096 243 242 struct work_struct SAK_work; 244 243 } __randomize_layout; 245 244