函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:madvise_vma

函数原型:static long madvise_vma(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, int behavior)

返回类型:long

参数:

类型参数名称
struct vm_area_struct *vma
struct vm_area_struct **prev
unsigned longstart
unsigned longend
intbehavior
932  :behavior恒等于move these pages & resources
933  返回:Application wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.
934  :behavior恒等于will need these pages
935  返回:Schedule all required I/O operations. Do not wait for completion.
936  :behavior恒等于deactivate these pages
937  返回:madvise_cold(vma, prev, start, end)
938  :behavior恒等于claim these pages
939  返回:madvise_pageout(vma, prev, start, end)
940  :behavior恒等于 pages only if memory pressure
941  :behavior恒等于don't need these pages
942  返回:madvise_dontneed_free(vma, prev, start, end, behavior)
943  默认
944  返回:We can potentially split a vm area into separate* areas, each area with its own behavior.
调用者
名称描述
SYSCALL_DEFINE3The madvise(2) system call