diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-23 01:08:07 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-29 00:13:11 -0500 |
commit | 05afcb77eb4713f46e7ebaa3cb54bc465c5d516e (patch) | |
tree | feeafbb29a9a41fb7d85ff55fdb624eaa918907f /include/linux/uio.h | |
parent | 26bc420b59a38e4e6685a73345a0def461136dce (diff) | |
download | blackbird-op-linux-05afcb77eb4713f46e7ebaa3cb54bc465c5d516e.tar.gz blackbird-op-linux-05afcb77eb4713f46e7ebaa3cb54bc465c5d516e.zip |
new helper: iov_iter_bvec()
similar to iov_iter_kvec(), for ITER_BVEC ones
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r-- | include/linux/uio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index 1c5e453f7ea9..b447402d9737 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -88,7 +88,9 @@ size_t iov_iter_zero(size_t bytes, struct iov_iter *); unsigned long iov_iter_alignment(const struct iov_iter *i); void iov_iter_init(struct iov_iter *i, int direction, const struct iovec *iov, unsigned long nr_segs, size_t count); -void iov_iter_kvec(struct iov_iter *i, int direction, const struct kvec *iov, +void iov_iter_kvec(struct iov_iter *i, int direction, const struct kvec *kvec, + unsigned long nr_segs, size_t count); +void iov_iter_bvec(struct iov_iter *i, int direction, const struct bio_vec *bvec, unsigned long nr_segs, size_t count); ssize_t iov_iter_get_pages(struct iov_iter *i, struct page **pages, size_t maxsize, unsigned maxpages, size_t *start); |