函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-27 16:01:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型: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)

返回类型:long

参数:

类型参数名称
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  如果WARN_ON_ONCE(gup_flags & mapping lifetime is indefinite: see below )则返回:负EINVAL
1175  返回:__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 )
调用者
名称描述
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*
__update_ref_ctr
tomoyo_dump_pagemoyo_dump_page - Dump a page to buffer.*@bprm: Pointer to "struct linux_binprm".*@pos: Location to dump.*@dump: Poiner to "struct tomoyo_page_dump".* Returns true on success, false otherwise.
get_arg_page