Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap_state.c Create Date:2022-07-28 15:15:00
Last Modify:2020-03-17 22:02:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swap_ra_clamp_pfn

Proto: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)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longfaddr
unsigned longlpfn
unsigned longrpfn
unsigned long *start
unsigned long *end
634  start = max3 - return maximum of three values*@x: first value*@y: second value*@z: third value(lpfn, PFN_DOWN(Our start address within vm_mm. ), PFN_DOWN(faddr & PMD_MASK))
636  end = min3 - return minimum of three values*@x: first value*@y: second value*@z: third value(rpfn, PFN_DOWN(The first byte after our end addresswithin vm_mm. ), PFN_DOWN((faddr & PMD_MASK) + PMD_SIZE))
Caller
NameDescribe
swap_ra_info