Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-28 14:38:08
Last Modify:2020-03-17 21:26:27 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Access another process' address space.* - source/target buffer must be kernel space

Proto:int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
unsigned longaddr
void *buf
intlen
unsigned intgup_flags
1767  If addr + len < addr Then Return 0
1770  mm = get_task_mm - acquire a reference to the task's mm* Returns %NULL if the task has no mm. Checks PF_KTHREAD (meaning* this kernel workthread has transiently adopted a user mm with use_mm,* to do its AIO) is not set and if so returns a reference to it, after
1771  If Not mm Then Return 0
1774  len = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags)
1776  Decrement the use count and release all resources for an mm.
1777  Return len