Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\madvise.c Create Date:2022-07-28 15:11:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Any behaviour which results in changes to the vma->vm_flags needs to* take mmap_sem for writing. Others, which simply traverse vmas, need* to only take it for reading.

Proto:static int madvise_need_mmap_write(int behavior)

Type:int

Parameter:

TypeParameterName
intbehavior
48  Case behavior == move these pages & resources
49  Case behavior == will need these pages
50  Case behavior == don't need these pages
51  Case behavior == deactivate these pages
52  Case behavior == claim these pages
53  Case behavior == pages only if memory pressure
54  Return 0
55  Default
57  Return 1
Caller
NameDescribe
SYSCALL_DEFINE3The madvise(2) system call