Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apply_to_pud_range

Proto:static int apply_to_pud_range(struct mm_struct *mm, p4d_t *p4d, unsigned long addr, unsigned long end, pte_fn_t fn, void *data, bool create)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
p4d_t *p4d
unsigned longaddr
unsigned longend
pte_fn_tfn
void *data
boolcreate
2096  err = 0
2098  If create Then
2099  pud = pud_alloc(mm, p4d, addr)
2100  If Not pud Then Return -ENOMEM
2102  Else
2103  pud = pud_offset(p4d, addr)
2105  Do
2106  next = pud_addr_end(addr, end)
2107  If create || Not pud_none_or_clear_bad(pud) Then
2110  If err Then Break
2113  When pud++, addr = next , addr != end cycle
2114  Return err
Caller
NameDescribe
apply_to_p4d_range