函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unuse_pud_range

函数原型:static inline int unuse_pud_range(struct vm_area_struct *vma, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned int type, bool frontswap, unsigned long *fs_pages_to_unuse)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
p4d_t *p4d
unsigned longaddr
unsigned longend
unsigned inttype
boolfrontswap
unsigned long *fs_pages_to_unuse
2009  pud等于pud_offset(p4d, addr)
2010  循环
2011  next等于pud_addr_end(addr, end)
2012  如果pud_none_or_clear_bad(pud)则继续下一循环
2014  ret等于unuse_pmd_range(vma, pud, addr, next, type, frontswap, fs_pages_to_unuse)
2016  如果ret则返回:ret
2018 pud自加, addr等于next, addr不等于end循环
2019  返回:0
调用者
名称描述
unuse_p4d_range