函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This is used for a general mmap of a disk file

函数原型:int generic_file_mmap(struct file *file, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct file *file
struct vm_area_struct *vma
2707  mapping等于f_mapping
2709  如果非readpage则返回:负ENOEXEC
2711  file_accessed(file)
2712  Function pointers to deal with this struct. 等于generic_file_vm_ops
2713  返回:0
调用者
名称描述
generic_file_readonly_mmapThis is for filesystems which do not implement ->writepage.