Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_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)

Proto:int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)

Type:int

Parameter:

TypeParameterName
struct bio *bio
struct iov_iter *iter
985  is_bvec = iov_iter_is_bvec(iter)
988  If WARN_ON_ONCE( how many bio_vec's ) Then Return -EINVAL
991  Do
992  If is_bvec Then ret = __bio_iov_bvec_add_pages(bio, iter)
994  Else ret = __bio_iov_iter_get_pages - pin user or kernel pages and add them to a bio*@bio: bio to add pages to*@iter: iov iterator describing the region to be mapped* Pins pages from *iter and appends them to @bio's bvec array. The
996  When Not ret && iov_iter_count(iter) && Not _full - check if the bio is full*@bio: bio to check*@len: length of one segment to be added* Return true if @bio is full and one segment with @len bytes can't be* added to the bio, otherwise return false cycle
998  If is_bvec Then bio_set_flag(bio, BIO_NO_PAGE_REF)
1000  Return If how many bio_vec's Then 0 Else ret
Caller
NameDescribe
__blkdev_direct_IO
iomap_dio_bio_actor