函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\madvise.c Create Date:2022-07-27 16:42:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static int madvise_need_mmap_write(int behavior)

返回类型:int

参数:

类型参数名称
intbehavior
48  :behavior恒等于move these pages & resources
49  :behavior恒等于will need these pages
50  :behavior恒等于don't need these pages
51  :behavior恒等于deactivate these pages
52  :behavior恒等于claim these pages
53  :behavior恒等于 pages only if memory pressure
54  返回:0
55  默认
57  返回:1
调用者
名称描述
SYSCALL_DEFINE3The madvise(2) system call