Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:madvise_vma

Proto:static long madvise_vma(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, int behavior)

Type:long

Parameter:

TypeParameterName
struct vm_area_struct *vma
struct vm_area_struct **prev
unsigned longstart
unsigned longend
intbehavior
932  Case behavior == move these pages & resources
933  Return Application wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.
934  Case behavior == will need these pages
935  Return Schedule all required I/O operations. Do not wait for completion.
936  Case behavior == deactivate these pages
937  Return madvise_cold(vma, prev, start, end)
938  Case behavior == claim these pages
939  Return madvise_pageout(vma, prev, start, end)
940  Case behavior == pages only if memory pressure
941  Case behavior == don't need these pages
942  Return madvise_dontneed_free(vma, prev, start, end, behavior)
943  Default
944  Return We can potentially split a vm area into separate* areas, each area with its own behavior.
Caller
NameDescribe
SYSCALL_DEFINE3The madvise(2) system call