Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:18:25
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:unuse_p4d_range

Proto:static inline int unuse_p4d_range(struct vm_area_struct *vma, pgd_t *pgd, unsigned long addr, unsigned long end, unsigned int type, bool frontswap, unsigned long *fs_pages_to_unuse)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
pgd_t *pgd
unsigned longaddr
unsigned longend
unsigned inttype
boolfrontswap
unsigned long *fs_pages_to_unuse
2031  p4d = p4d_offset(pgd, addr)
2032  Do
2033  next = p4d_addr_end(addr, end)
2034  If p4d_none_or_clear_bad(p4d) Then Continue
2036  ret = unuse_pud_range(vma, p4d, addr, next, type, frontswap, fs_pages_to_unuse)
2038  If ret Then Return ret
2040  When p4d++, addr = next , addr != end cycle
2041  Return 0
Caller
NameDescribe
unuse_vma