函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:madvise_behavior_valid

函数原型:static bool madvise_behavior_valid(int behavior)

返回类型:bool

参数:

类型参数名称
intbehavior
952  :behavior恒等于do inherit across fork
953  :behavior恒等于don't inherit across fork
954  :behavior恒等于 further special treatment
955  :behavior恒等于xpect sequential page references
956  :behavior恒等于xpect random page references
957  :behavior恒等于move these pages & resources
958  :behavior恒等于will need these pages
959  :behavior恒等于don't need these pages
960  :behavior恒等于 pages only if memory pressure
961  :behavior恒等于deactivate these pages
962  :behavior恒等于claim these pages
964  :behavior恒等于KSM may merge identical pages
965  :behavior恒等于KSM may not merge identical pages
968  :behavior恒等于Worth backing with hugepages
969  :behavior恒等于Not worth backing with hugepages
971  :behavior恒等于Explicity exclude from the core dump,overrides the coredump filter bits
972  :behavior恒等于Clear the MADV_DONTDUMP flag
973  :behavior恒等于Zero memory on fork, child only
974  :behavior恒等于Undo MADV_WIPEONFORK
976  :behavior恒等于soft offline page for testing
977  :behavior恒等于poison a page for testing
979  返回:true
981  默认
982  返回:false
调用者
名称描述
SYSCALL_DEFINE3The madvise(2) system call