Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-28 06:24:10
Last Modify:2022-05-21 11:43:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:import_single_range

Proto:int import_single_range(int rw, void __user *buf, size_t len, struct iovec *iov, struct iov_iter *i)

Type:int

Parameter:

TypeParameterName
intrw
void __user *buf
size_tlen
struct iovec *iov
struct iov_iter *i
1721  If len > MAX_RW_COUNT Then len = MAX_RW_COUNT
1723  If Value for the false possibility is greater at compile time(!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)) Then Return -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  Return 0