diff options
| author | Christoph Hellwig <hch@lst.de> | 2020-11-04 09:27:33 +0100 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-06 10:05:18 -0800 | 
| commit | d4d50710a8b46082224376ef119a4dbb75b25c56 (patch) | |
| tree | 318208ce4e81d298e7ed236f0475dfcd191c3936 /include | |
| parent | 3cea11cd5e3b00d91caf0b4730194039b45c5891 (diff) | |
seq_file: add seq_read_iter
iov_iter based variant for reading a seq_file.  seq_read is
reimplemented on top of the iter variant.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/seq_file.h | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 813614d4b71f..b83b3ae3c877 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -107,6 +107,7 @@ void seq_pad(struct seq_file *m, char c);  char *mangle_path(char *s, const char *p, const char *esc);  int seq_open(struct file *, const struct seq_operations *);  ssize_t seq_read(struct file *, char __user *, size_t, loff_t *); +ssize_t seq_read_iter(struct kiocb *iocb, struct iov_iter *iter);  loff_t seq_lseek(struct file *, loff_t, int);  int seq_release(struct inode *, struct file *);  int seq_write(struct seq_file *seq, const void *data, size_t len); | 
