Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:madvise_behavior_valid

Proto:static bool madvise_behavior_valid(int behavior)

Type:bool

Parameter:

TypeParameterName
intbehavior
952  Case behavior == do inherit across fork
953  Case behavior == don't inherit across fork
954  Case behavior == further special treatment
955  Case behavior == xpect sequential page references
956  Case behavior == xpect random page references
957  Case behavior == move these pages & resources
958  Case behavior == will need these pages
959  Case behavior == don't need these pages
960  Case behavior == pages only if memory pressure
961  Case behavior == deactivate these pages
962  Case behavior == claim these pages
964  Case behavior == KSM may merge identical pages
965  Case behavior == KSM may not merge identical pages
968  Case behavior == Worth backing with hugepages
969  Case behavior == Not worth backing with hugepages
971  Case behavior == Explicity exclude from the core dump,overrides the coredump filter bits
972  Case behavior == Clear the MADV_DONTDUMP flag
973  Case behavior == Zero memory on fork, child only
974  Case behavior == Undo MADV_WIPEONFORK
976  Case behavior == soft offline page for testing
977  Case behavior == poison a page for testing
979  Return true
981  Default
982  Return false
Caller
NameDescribe
SYSCALL_DEFINE3The madvise(2) system call