函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unuse_pmd_range

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

返回类型:int

参数:

类型参数名称
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  循环
1988  cond_resched()
1989  next等于pmd_addr_end(addr, end)
1990  如果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则继续下一循环
1992  ret等于unuse_pte_range(vma, pmd, addr, next, type, frontswap, fs_pages_to_unuse)
1994  如果ret则返回:ret
1996 pmd自加, addr等于next, addr不等于end循环
1997  返回:0
调用者
名称描述
unuse_pud_range