函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:21:20
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:import_single_range

函数原型:int import_single_range(int rw, void __user *buf, size_t len, struct iovec *iov, struct iov_iter *i)

返回类型:int

参数:

类型参数名称
intrw
void __user *buf
size_tlen
struct iovec *iov
struct iov_iter *i
1721  如果len大于MAX_RW_COUNTlen等于MAX_RW_COUNT
1723  如果此条件成立可能性小(为编译器优化)(!access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(buf, len))则返回:负EFAULT
1726  BSD uses caddr_t (1003.1g requires void *) 等于buf
1727  Must be size_t (1003.1g) 等于len
1728  iov_iter_init(i, rw, iov, 1, len)
1729  返回:0
调用者
名称描述
blk_rq_map_userREQ_BLOCK_PC请求
keyctl_instantiate_keyInstantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required.
aio_setup_rw