函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
struct bio *bio
struct iov_iteriter
1207  ret等于copy_page_to_iter(bv_page, bv_offset, bv_len, & iter)
1212  如果非iov_iter_count( & iter)则退出
1215  如果ret小于bv_len则返回:负EFAULT
1219  返回:0
调用者
名称描述
bio_uncopy_user_uncopy_user - finish previously mapped bio*@bio: bio being terminated* Free pages allocated from bio_copy_user_iov() and write back data* to user space in case of a read.