Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iov_iter_init

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

Type:void

Parameter:

TypeParameterName
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  If uaccess_kernel() Then
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  Else
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
Caller
NameDescribe
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