Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmap_pte_range

Proto:static int vmap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, pgprot_t prot, struct page **pages, int *nr)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
unsigned longaddr
unsigned longend
pgprot_tprot
struct page **pages
int *nr
147  pte = pte_alloc_kernel(pmd, addr)
148  If Not pte Then Return -ENOMEM
150  Do
151  page = pages[ * nr]
153  If WARN_ON(!pte_none( * pte)) Then Return -EBUSY
155  If WARN_ON(!page) Then Return -ENOMEM
157  set_pte_at( & init_mm, addr, pte, Conversion functions: convert a page and protection to a page entry,* and a page entry and page directory to the page they refer to.* (Currently stuck as a macro because of indirect forward reference* to linux/mm.h:page_to_nid())(page, prot))
158  nr++
159  When pte++, addr += PAGE_SIZE , addr != end cycle
160  Return 0
Caller
NameDescribe
vmap_pmd_range