diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-24 14:46:11 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-08 20:25:23 -0500 |
commit | abb78f875f3fcedb88d85eef9f7be7aa474c6727 (patch) | |
tree | fc097b375bb4230c1e1f40ec413ee8f0252e2a1f /include/linux/uio.h | |
parent | a604ec7e9ffea22fed84db8306585090e7a6e85d (diff) | |
download | op-kernel-dev-abb78f875f3fcedb88d85eef9f7be7aa474c6727.zip op-kernel-dev-abb78f875f3fcedb88d85eef9f7be7aa474c6727.tar.gz |
new helper: iov_iter_kvec()
initialization of kvec-backed iov_iter
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r-- | include/linux/uio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index 28ed2d9..c567655 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -87,6 +87,8 @@ 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, + 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); ssize_t iov_iter_get_pages_alloc(struct iov_iter *i, struct page ***pages, |