Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:55:23
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__bio_iov_bvec_add_pages

Proto:static int __bio_iov_bvec_add_pages(struct bio *bio, struct iov_iter *iter)

Type:int

Parameter:

TypeParameterName
struct bio *bio
struct iov_iter *iter
892  bv = bvec
896  If WARN_ON_ONCE(iov_offset > bv_len) Then Return -EINVAL
899  len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, bv_len - iov_offset, count)
900  size = _add_page - attempt to add page(s) to bio*@bio: destination bio*@page: start page to add*@len: vec entry length, may cross pages*@offset: vec entry offset relative to @page, may cross pages* Attempt to add page(s) to the bio_vec maplist
902  If Value for the false possibility is greater at compile time(size != len) Then Return -EINVAL
904  iov_iter_advance(iter, size)
905  Return 0
Caller
NameDescribe
bio_iov_iter_get_pages_iov_iter_get_pages - add user or kernel pages to a bio*@bio: bio to add pages to*@iter: iov iterator describing the region to be added* This takes either an iterator pointing to user memory, or one pointing to* kernel pages (BVEC iterator)