函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Schedule all required I/O operations. Do not wait for completion.

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

返回类型:long

参数:

类型参数名称
struct vm_area_struct *vma
struct vm_area_struct **prev
unsigned longstart
unsigned longend
257  file等于File we map to (can be NULL).
260  prev等于vma
274  如果非file则返回:负EBADF
278  如果IS_DAX(file_inode(file))则
280  返回:0
289  * prev = NULL
290  get_file(file)
291  lease a read lock
292  offset等于startOur start address within vm_mm. Offset (within vm_file) in PAGE_SIZEunits 左移PAGE_SHIFT determines the page size 位的值
294  vfs_fadvise(file, offset, end - start, Will need these pages. )
295  fput(file)
296  lock for reading
297  返回:0
调用者
名称描述
madvise_vma