Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Scan a region of virtual memory, filling in page tables as necessary* and calling a provided function on each leaf page table.

Proto:int apply_to_page_range(struct mm_struct *mm, unsigned long addr, unsigned long size, pte_fn_t fn, void *data)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
unsigned longsize
pte_fn_tfn
void *data
2176  Return __apply_to_page_range(mm, addr, size, fn, data, true)
Caller
NameDescribe
alloc_vm_areaalloc_vm_area - allocate a range of kernel address space*@size: size of the area*@ptes: returns the PTEs for the address space* Returns: NULL on failure, vm_struct on success* This function reserves a range of kernel address space, and