Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apply_to_pmd_range

Proto:static int apply_to_pmd_range(struct mm_struct *mm, pud_t *pud, unsigned long addr, unsigned long end, pte_fn_t fn, void *data, bool create)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
pud_t *pud
unsigned longaddr
unsigned longend
pte_fn_tfn
void *data
boolcreate
2067  err = 0
2069  BUG_ON(pud_huge( * pud))
2071  If create Then
2072  pmd = pmd_alloc(mm, pud, addr)
2073  If Not pmd Then Return -ENOMEM
2075  Else
2076  pmd = pmd_offset(pud, addr)
2078  Do
2079  next = pmd_addr_end(addr, end)
2080  If create || Not pmd_none_or_clear_bad(pmd) Then
2083  If err Then Break
2086  When pmd++, addr = next , addr != end cycle
2087  Return err
Caller
NameDescribe
apply_to_pud_range