函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unuse_p4d_range

函数原型: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)

返回类型:int

参数:

类型参数名称
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  循环
2033  next等于p4d_addr_end(addr, end)
2034  如果p4d_none_or_clear_bad(p4d)则继续下一循环
2036  ret等于unuse_pud_range(vma, p4d, addr, next, type, frontswap, fs_pages_to_unuse)
2038  如果ret则返回:ret
2040 p4d自加, addr等于next, addr不等于end循环
2041  返回:0
调用者
名称描述
unuse_vma