Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unuse_pmd_range

Proto:static inline int unuse_pmd_range(struct vm_area_struct *vma, pud_t *pud, 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
pud_t *pud
unsigned longaddr
unsigned longend
unsigned inttype
boolfrontswap
unsigned long *fs_pages_to_unuse
1986  pmd = pmd_offset(pud, addr)
1987  Do
1988  cond_resched()
1989  next = pmd_addr_end(addr, end)
1990  If This function is meant to be used by sites walking pagetables with* the mmap_sem hold in read mode to protect against MADV_DONTNEED and* transhuge page faults Then Continue
1992  ret = unuse_pte_range(vma, pmd, addr, next, type, frontswap, fs_pages_to_unuse)
1994  If ret Then Return ret
1996  When pmd++, addr = next , addr != end cycle
1997  Return 0
Caller
NameDescribe
unuse_pud_range