函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_ra_clamp_pfn

函数原型:static inline void swap_ra_clamp_pfn(struct vm_area_struct *vma, unsigned long faddr, unsigned long lpfn, unsigned long rpfn, unsigned long *start, unsigned long *end)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longfaddr
unsigned longlpfn
unsigned longrpfn
unsigned long *start
unsigned long *end
634  start等于三数取大(lpfn, PFN_DOWN(Our start address within vm_mm. ), PFN_DOWN(faddr & PMD_MASK))
636  end等于三数取小(rpfn, PFN_DOWN(The first byte after our end addresswithin vm_mm. ), PFN_DOWN((faddr & PMD_MASK) + PMD_SIZE))
调用者
名称描述
swap_ra_info