Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apply_to_p4d_range

Proto:static int apply_to_p4d_range(struct mm_struct *mm, pgd_t *pgd, unsigned long addr, unsigned long end, pte_fn_t fn, void *data, bool create)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
pgd_t *pgd
unsigned longaddr
unsigned longend
pte_fn_tfn
void *data
boolcreate
2123  err = 0
2125  If create Then
2126  p4d = The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
2127  If Not p4d Then Return -ENOMEM
2129  Else
2130  p4d = p4d_offset(pgd, addr)
2132  Do
2133  next = p4d_addr_end(addr, end)
2134  If create || Not p4d_none_or_clear_bad(p4d) Then
2137  If err Then Break
2140  When p4d++, addr = next , addr != end cycle
2141  Return err
Caller
NameDescribe
__apply_to_page_range