Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unuse_vma

Proto:static int unuse_vma(struct vm_area_struct *vma, unsigned int type, bool frontswap, unsigned long *fs_pages_to_unuse)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned inttype
boolfrontswap
unsigned long *fs_pages_to_unuse
2051  addr = Our start address within vm_mm.
2052  end = The first byte after our end addresswithin vm_mm.
2054  pgd = a shortcut to get a pgd_t in a given mm(The address space we belong to. , addr)
2055  Do
2056  next = When walking page tables, get the address of the next boundary,* or the end address of the range if that comes earlier. Although no* vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.(addr, end)
2057  If pgd_none_or_clear_bad(pgd) Then Continue
2059  ret = unuse_p4d_range(vma, pgd, addr, next, type, frontswap, fs_pages_to_unuse)
2061  If ret Then Return ret
2063  When pgd++, addr = next , addr != end cycle
2064  Return 0
Caller
NameDescribe
unuse_mm