函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:30:36
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__bio_iov_bvec_add_pages

函数原型:static int __bio_iov_bvec_add_pages(struct bio *bio, struct iov_iter *iter)

返回类型:int

参数:

类型参数名称
struct bio *bio
struct iov_iter *iter
892  bv等于bvec
896  如果WARN_ON_ONCE(iov_offset > bv_len)则返回:负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  如果此条件成立可能性小(为编译器优化)(size != len)则返回:负EINVAL
904  iov_iter_advance(iter, size)
905  返回:0
调用者
名称描述
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)