linux_dsm_epyc7002/drivers/net
Linus Torvalds 279e54536d tty: convert tty_ldisc_ops 'read()' function to take a kernel pointer
[ Upstream commit 3b830a9c34d5897be07176ce4e6f2d75e2c8cfd7 ]

The tty line discipline .read() function was passed the final user
pointer destination as an argument, which doesn't match the 'write()'
function, and makes it very inconvenient to do a splice method for
ttys.

This is a conversion to use a kernel buffer instead.

NOTE! It does this by passing the tty line discipline ->read() function
an additional "cookie" to fill in, and an offset into the cookie data.

The line discipline can fill in the cookie data with its own private
information, and then the reader will repeat the read until either the
cookie is cleared or it runs out of data.

The only real user of this is N_HDLC, which can use this to handle big
packets, even if the kernel buffer is smaller than the whole packet.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:36 +01:00
..
appletalk
arcnet
bonding
caif
can
dsa net: dsa: felix: don't deinitialize unused ports 2021-03-04 11:37:34 +01:00
ethernet net: enetc: fix destroyed phylink dereference during unbind 2021-03-04 11:37:35 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mdio
netdevsim
pcs
phy net: phy: mscc: adding LCPLL reset to VSC8514 2021-03-04 11:37:35 +01:00
plip
ppp tty: convert tty_ldisc_ops 'read()' function to take a kernel pointer 2021-03-04 11:37:36 +01:00
slip
team
usb
vmxnet3
wan
wimax
wireguard
wireless b43: N-PHY: Fix the update of coef for the PHY revision >= 3case 2021-03-04 11:37:34 +01:00
xen-netback xen/netback: fix spurious event detection for common event case 2021-03-04 11:37:30 +01:00
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c