Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmap_pmd_range

Proto:static int vmap_pmd_range(pud_t *pud, unsigned long addr, unsigned long end, pgprot_t prot, struct page **pages, int *nr)

Type:int

Parameter:

TypeParameterName
pud_t *pud
unsigned longaddr
unsigned longend
pgprot_tprot
struct page **pages
int *nr
169  pmd = pmd_alloc( & init_mm, pud, addr)
170  If Not pmd Then Return -ENOMEM
172  Do
173  next = pmd_addr_end(addr, end)
174  If vmap_pte_range(pmd, addr, next, prot, pages, nr) Then Return -ENOMEM
176  When pmd++, addr = next , addr != end cycle
177  Return 0
Caller
NameDescribe
vmap_pud_range