diff options
author | 2020-09-03 16:22:31 +0200 | |
---|---|---|
committer | 2020-09-03 21:26:24 -0400 | |
commit | fd5a13f4893c8df2a5a3af8599adecb52d05fe89 (patch) | |
tree | e579140f316eb6d67ed4e34bad2387d6d23a7c42 /include/linux/proc_fs.h | |
parent | proc: cleanup the compat vs no compat file ops (diff) | |
download | linux-fd5a13f4893c8df2a5a3af8599adecb52d05fe89.tar.gz linux-fd5a13f4893c8df2a5a3af8599adecb52d05fe89.tar.bz2 linux-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.h | 1 |
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 *); |