Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmap_p4d_range

Proto:static int vmap_p4d_range(pgd_t *pgd, unsigned long addr, unsigned long end, pgprot_t prot, struct page **pages, int *nr)

Type:int

Parameter:

TypeParameterName
pgd_t *pgd
unsigned longaddr
unsigned longend
pgprot_tprot
struct page **pages
int *nr
203  p4d = The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
204  If Not p4d Then Return -ENOMEM
206  Do
207  next = p4d_addr_end(addr, end)
208  If vmap_pud_range(p4d, addr, next, prot, pages, nr) Then Return -ENOMEM
210  When p4d++, addr = next , addr != end cycle
211  Return 0
Caller
NameDescribe
vmap_page_range_noflushSet 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]