BIO_IOV_ITER_GET_PAG(9)

NAME
bio_iov_iter_get_pages - pin user or kernel pages and add them to a bio

SYNOPSIS

int bio_iov_iter_get_pages(struct bio * bio, struct iov_iter * iter);

ARGUMENTS

bio
    bio to add pages to

iter
    iov iterator describing the region to be mapped

DESCRIPTION

Pins as many pages from *iter and appends them to bio's bvec array. The pages will have to be released using put_page when done.

COPYRIGHT