Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:remap_pud_range

Proto:static inline int remap_pud_range(struct mm_struct *mm, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long pfn, pgprot_t prot)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
p4d_t *p4d
unsigned longaddr
unsigned longend
unsigned longpfn
pgprot_tprot
1866  pfn -= addr >> PAGE_SHIFT determines the page size
1867  pud = pud_alloc(mm, p4d, addr)
1868  If Not pud Then Return -ENOMEM
1870  Do
1871  next = pud_addr_end(addr, end)
1872  err = remap_pmd_range(mm, pud, addr, next, pfn + (addr >> PAGE_SHIFT determines the page size ), prot)
1874  If err Then Return err
1876  When pud++, addr = next , addr != end cycle
1877  Return 0
Caller
NameDescribe
remap_p4d_range