Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-28 14:35:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_user_pages_remote() - pin user pages in memory*@tsk: the task_struct to use for page fault accounting, or* NULL if faults are not to be recorded

Proto:long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, struct vm_area_struct **vmas, int *locked)

Type:long

Parameter:

TypeParameterName
struct task_struct *tsk
struct mm_struct *mm
unsigned longstart
unsigned longnr_pages
unsigned intgup_flags
struct page **pages
struct vm_area_struct **vmas
int *locked
1172  If WARN_ON_ONCE(gup_flags & mapping lifetime is indefinite: see below ) Then Return -EINVAL
1175  Return __get_user_pages_locked(tsk, mm, start, nr_pages, pages, vmas, locked, gup_flags | mark page accessed | we are working on non-current tsk/mm )
Caller
NameDescribe
uprobe_write_opcodeNOTE:* Expect the breakpoint instruction to be the smallest size instruction for* the architecture
is_trap_at_addr
__access_remote_vmAccess another process' address space as given in mm. If non-NULL, use the* given task for page fault accounting.
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*