函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_copy_from_iter - copy all pages from iov_iter to bio*@bio: The &struct bio which describes the I/O as destination*@iter: iov_iter as source* Copy all pages from iov_iter to bio.* Returns 0 on success, or error on failure.

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

返回类型:int

参数:

类型参数名称
struct bio *bio
struct iov_iter *iter
1176  ret等于copy_page_from_iter(bv_page, bv_offset, bv_len, iter)
1181  如果非iov_iter_count(iter)则退出
1184  如果ret小于bv_len则返回:负EFAULT
1188  返回:0
调用者
名称描述
bio_copy_user_iov_copy_user_iov - copy user data to bio*@q: destination block queue*@map_data: pointer to the rq_map_data holding pages (if necessary)*@iter: iovec iterator*@gfp_mask: memory allocation flags* Prepares and returns a bio for indirect user io, bouncing data