Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Schedule all required I/O operations. Do not wait for completion.

Proto:static long madvise_willneed(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end)

Type:long

Parameter:

TypeParameterName
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  If Not file Then Return -EBADF
278  If IS_DAX(file_inode(file)) Then
280  Return 0
289  * prev = NULL
290  get_file(file)
291  lease a read lock
292  offset = start - Our 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  Return 0
Caller
NameDescribe
madvise_vma