Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:file_mmap_size_max

Proto:static inline u64 file_mmap_size_max(struct file *file, struct inode *inode)

Type:u64

Parameter:

TypeParameterName
struct file *file
struct inode *inode
1334  If S_ISREG(i_mode) Then Return Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1337  If S_ISBLK(i_mode) Then Return Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1340  If S_ISSOCK(i_mode) Then Return Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM.
1344  If f_mode & File is huge (eg. /dev/kmem): treat loff_t as unsigned Then Return 0
1348  Return ULONG_MAX
Caller
NameDescribe
file_mmap_ok