summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-11-27 19:51:41 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-28 00:44:10 +0100
commit04a311655b06163e2a94e429fe79eb8616fc5e01 (patch)
tree441e212766a0d2ad42a3c796b4beea999dbdd0d6 /virt
parentLinux 3.18-rc6 (diff)
downloadlinux-04a311655b06163e2a94e429fe79eb8616fc5e01.tar.xz
linux-04a311655b06163e2a94e429fe79eb8616fc5e01.zip
iov_iter.c: macros for iterating over iov_iter
iterate_all_kinds(iter, size, ident, step_iovec, step_bvec) iterates through the ranges covered by iter (up to size bytes total), repeating step_iovec or step_bvec for each of those. ident is declared in expansion of that thing, either as struct iovec or struct bvec, and it contains the range we are currently looking at. step_bvec should be a void expression, step_iovec - a size_t one, with non-zero meaning "stop here, that many bytes from this range left". In the end, the amount actually handled is stored in size. iov_iter_copy_from_user_atomic() and iov_iter_alignment() converted to it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions