summaryrefslogtreecommitdiff
path: root/include/linux/proc_fs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-03 16:22:31 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-09-03 21:26:24 -0400
commitfd5a13f4893c8df2a5a3af8599adecb52d05fe89 (patch)
treee579140f316eb6d67ed4e34bad2387d6d23a7c42 /include/linux/proc_fs.h
parent906146f44922392f00293e52ea9b61168b75ac62 (diff)
downloadlwn-fd5a13f4893c8df2a5a3af8599adecb52d05fe89.tar.gz
lwn-fd5a13f4893c8df2a5a3af8599adecb52d05fe89.zip
proc: add a read_iter method to proc proc_ops
This will allow proc files to implement iter read semantics. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r--include/linux/proc_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 2df965cd0974..270cab43ca3d 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -30,6 +30,7 @@ struct proc_ops {
unsigned int proc_flags;
int (*proc_open)(struct inode *, struct file *);
ssize_t (*proc_read)(struct file *, char __user *, size_t, loff_t *);
+ ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
ssize_t (*proc_write)(struct file *, const char __user *, size_t, loff_t *);
loff_t (*proc_lseek)(struct file *, loff_t, int);
int (*proc_release)(struct inode *, struct file *);