bio_iov_iter_get_pages — pin user or kernel pages and add them to a bio
int bio_iov_iter_get_pages ( | struct bio * bio, |
struct iov_iter * iter) ; |
Pins pages from *iter and appends them to bio
's bvec array. The
pages will have to be released using put_page
when done.
The function tries, but does not guarantee, to pin as many pages as
fit into the bio, or are requested in *iter, whatever is smaller.
If MM encounters an error pinning the requested pages, it stops.
Error is returned only if 0 pages could be pinned.