函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:file_mmap_size_max

函数原型:static inline u64 file_mmap_size_max(struct file *file, struct inode *inode)

返回类型:u64

参数:

类型参数名称
struct file *file
struct inode *inode
1334  如果S_ISREG(i_mode)则返回:Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1337  如果S_ISBLK(i_mode)则返回:Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1340  如果S_ISSOCK(i_mode)则返回:Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1344  如果f_mode按位与File is huge (eg. /dev/kmem): treat loff_t as unsigned 则返回:0
1348  返回:ULONG_MAX
调用者
名称描述
file_mmap_ok