Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is used for a general mmap of a disk file

Proto:int generic_file_mmap(struct file *file, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct file *file
struct vm_area_struct *vma
2707  mapping = f_mapping
2709  If Not readpage Then Return -ENOEXEC
2711  file_accessed(file)
2712  Function pointers to deal with this struct. = generic_file_vm_ops
2713  Return 0
Caller
NameDescribe
generic_file_readonly_mmapThis is for filesystems which do not implement ->writepage.