summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-21 09:40:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-21 09:40:55 +0100
commit3cfade53c77315d018c50ea1ee3420cef1c50fe7 (patch)
treed5ae53cb94d00ad205daf3fa8894f5b5c47c0267 /include
parentserial: remove sirf prima/atlas driver (diff)
parenttty: teach the n_tty ICANON case about the new "cookie continuations" too (diff)
downloadlinux-3cfade53c77315d018c50ea1ee3420cef1c50fe7.tar.xz
linux-3cfade53c77315d018c50ea1ee3420cef1c50fe7.zip
Merge branch 'tty-splice' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into tty-next
Fixes both the "splice/sendfile to a tty" and "splice/sendfile from a tty" regression from 5.10. * 'tty-splice' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux: tty: teach the n_tty ICANON case about the new "cookie continuations" too tty: teach n_tty line discipline about the new "cookie continuations" tty: clean up legacy leftovers from n_tty line discipline tty: implement read_iter tty: convert tty_ldisc_ops 'read()' function to take a kernel pointer tty: implement write_iter
Diffstat (limited to 'include')
-rw-r--r--include/linux/tty_ldisc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h
index b1e6043e9917..572a07976116 100644
--- a/include/linux/tty_ldisc.h
+++ b/include/linux/tty_ldisc.h
@@ -185,7 +185,8 @@ struct tty_ldisc_ops {
void (*close)(struct tty_struct *);
void (*flush_buffer)(struct tty_struct *tty);
ssize_t (*read)(struct tty_struct *tty, struct file *file,
- unsigned char __user *buf, size_t nr);
+ unsigned char *buf, size_t nr,
+ void **cookie, unsigned long offset);
ssize_t (*write)(struct tty_struct *tty, struct file *file,
const unsigned char *buf, size_t nr);
int (*ioctl)(struct tty_struct *tty, struct file *file,