函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iov_iter_init

函数原型:void iov_iter_init(struct iov_iter *i, unsigned int direction, const struct iovec *iov, unsigned long nr_segs, size_t count)

返回类型:void

参数:

类型参数名称
struct iov_iter *i
unsigned intdirection
const struct iovec *iov
unsigned longnr_segs
size_tcount
444  WARN_ON(direction & ~(generic data direction definitions | WRITE))
445  direction与等于generic data direction definitions 按位或WRITE
448  如果uaccess_kernel()则
449  * Bit 0 is the read/write bit, set if we're writing. * Bit 1 is the BVEC_FLAG_NO_REF bit, set if type is a bvec and * the caller isn't expecting to drop a page reference when done.等于ITER_KVEC按位或direction
450  kvec等于iov
451  否则
452  * Bit 0 is the read/write bit, set if we're writing. * Bit 1 is the BVEC_FLAG_NO_REF bit, set if type is a bvec and * the caller isn't expecting to drop a page reference when done.等于 iter types 按位或direction
453  iov等于iov
455  nr_segs等于nr_segs
456  iov_offset等于0
457  count等于count
调用者
名称描述
import_iovecmport_iovec() - Copy an array of &struct iovec from userspace* into the kernel, check that it is valid, and initialize a new* &struct iov_iter iterator to access it.*@type: One of %READ or %WRITE.*@uvector: Pointer to the userspace array.
compat_import_iovec
import_single_range
new_sync_write
io_import_iovec
request_microcode_user
new_sync_read