函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:48:52
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:unuse_vma

函数原型:static int unuse_vma(struct vm_area_struct *vma, unsigned int type, bool frontswap, unsigned long *fs_pages_to_unuse)

返回类型:int

参数:

类型参数名称
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  循环
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  如果pgd_none_or_clear_bad(pgd)则继续下一循环
2059  ret等于unuse_p4d_range(vma, pgd, addr, next, type, frontswap, fs_pages_to_unuse)
2061  如果ret则返回:ret
2063 pgd自加, addr等于next, addr不等于end循环
2064  返回:0
调用者
名称描述
unuse_mm