Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmap_page_range

Proto:static int vmap_page_range(unsigned long start, unsigned long end, pgprot_t prot, struct page **pages)

Type:int

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
pgprot_tprot
struct page **pages
246  ret = Set up page tables in kva (addr, end). The ptes shall have prot "prot", and* will have pfns corresponding to the "pages" array.* Ie. pte at addr+N*PAGE_SIZE shall point to pfn corresponding to pages[N]
247  flush_cache_vmap(start, end)
248  Return ret
Caller
NameDescribe
vm_map_ramvm_map_ram - map pages linearly into kernel virtual address (vmalloc space)*@pages: an array of pointers to the pages to be mapped*@count: number of pages*@node: prefer to allocate data structures on this node*@prot: memory protection to use
map_vm_area