WSL2-Linux-Kernel/drivers/tty
Jiri Slaby 64d608db38 tty: cumulate and document tty_struct::ctrl* members
Group the ctrl members under a single struct called ctrl. The new struct
contains 'pgrp', 'session', 'pktstatus', and 'packet'. 'pktstatus' and
'packet' used to be bits in a bitfield. The struct also contains the
lock protecting them to share the same cache line.

Note that commit c545b66c69 (tty: Serialize tcflow() with other tty
flow control changes) added a padding to the original bitfield. It was
for the bitfield to occupy a whole 64b word to avoid interferring stores
on Alpha (cannot we evaporate this arch with weird implications to C
code yet?). But it doesn't work as expected as the padding
(tty_struct::ctrl_unused) is aligned to a 8B boundary too and occupies
some bytes from the next word.

So make it reliable by:
1) setting __aligned of the struct -- that aligns the start, and
2) making 'unsigned long unused[0]' as the last member of the struct --
   pads the end.

Add a kerneldoc comment for this grouped members.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20210505091928.22010-14-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-13 16:57:16 +02:00
..
hvc tty: hvc: make symbol 'hvc_udbg_dev' static 2021-04-10 10:41:40 +02:00
ipwireless tty: make everyone's write_room return >= 0 2021-03-10 09:34:09 +01:00
serdev tty: serdev: core: Provide missing description for 'owner' 2020-11-06 10:49:27 +01:00
serial tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
vt tty: cumulate and document tty_struct::ctrl* members 2021-05-13 16:57:16 +02:00
Kconfig tty: pti: Remove Kconfig leftovers 2021-04-09 17:00:32 +02:00
Makefile tty: remove broken r3964 line discipline 2021-05-13 16:57:15 +02:00
amiserial.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
ehv_bytechan.c
goldfish.c tty: goldfish: use __raw_writel()/__raw_readl() 2020-10-28 13:44:43 +01:00
mips_ejtag_fdc.c
moxa.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
moxa.h
mxser.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
mxser.h
n_gsm.c tty: make fp of tty_ldisc_ops::receive_buf{,2} const 2021-05-13 16:57:16 +02:00
n_hdlc.c tty: make fp of tty_ldisc_ops::receive_buf{,2} const 2021-05-13 16:57:16 +02:00
n_null.c tty: make fp of tty_ldisc_ops::receive_buf{,2} const 2021-05-13 16:57:16 +02:00
n_tty.c tty: cumulate and document tty_struct::ctrl* members 2021-05-13 16:57:16 +02:00
nozomi.c tty: nozomi, remove useless debug prints 2021-03-10 09:34:08 +01:00
pty.c tty: cumulate and document tty_struct::ctrl* members 2021-05-13 16:57:16 +02:00
synclink_gt.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
sysrq.c tty/sysrq: Fix issues of code indent should use tabs 2021-04-10 10:33:00 +02:00
tty.h tty: clean include/linux/tty.h up 2021-04-15 10:32:17 +02:00
tty_audit.c tty: audit: move some local functions out of tty.h 2021-04-15 10:24:58 +02:00
tty_baudrate.c tty: clean include/linux/tty.h up 2021-04-15 10:32:17 +02:00
tty_buffer.c tty: make fp of tty_ldisc_ops::receive_buf{,2} const 2021-05-13 16:57:16 +02:00
tty_io.c tty: cumulate and document tty_struct::ctrl* members 2021-05-13 16:57:16 +02:00
tty_ioctl.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
tty_jobctrl.c tty: cumulate and document tty_struct::ctrl* members 2021-05-13 16:57:16 +02:00
tty_ldisc.c tty: create internal tty.h file 2021-04-15 10:22:17 +02:00
tty_ldsem.c
tty_mutex.c tty: move some internal tty lock enums and functions out of tty.h 2021-04-15 10:26:58 +02:00
tty_port.c tty: cumulate and document tty_struct::flow* members 2021-05-13 16:57:16 +02:00
ttynull.c Revert "init/console: Use ttynull as a fallback when there is no console" 2021-01-08 11:02:18 -08:00
vcc.c tty: make everyone's write_room return >= 0 2021-03-10 09:34:09 +01:00