Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\process_vm_access.c Create Date:2022-07-28 15:01:16
Last Modify:2020-03-17 21:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:process_vm_rw_pages - read/write pages from task specified*@pages: array of pointers to pages we want to copy*@offset: offset in page to start copying from/to*@len: number of bytes to copy*@iter: where to copy to/from locally*@vm_write: 0 means copy from,

Proto:static int process_vm_rw_pages(struct page **pages, unsigned offset, size_t len, struct iov_iter *iter, int vm_write)

Type:int

Parameter:

TypeParameterName
struct page **pages
unsignedoffset
size_tlen
struct iov_iter *iter
intvm_write
37  When len && iov_iter_count(iter) cycle
38  page = pages++
39  copy = PAGE_SIZE - offset
42  If copy > len Then copy = len
45  If vm_write Then
48  Else
51  len -= copied
52  If copied < copy && iov_iter_count(iter) Then Return -EFAULT
54  offset = 0
56  Return 0
Caller
NameDescribe
process_vm_rw_single_vecprocess_vm_rw_single_vec - read/write pages from task specified*@addr: start memory address of target process*@len: size of area to copy to/from*@iter: where to copy to/from locally*@process_pages: struct pages area that can store at least*