Function report |
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 activity | Download SCCT | Chinese |
Name:file_mmap_size_max
Proto:static inline u64 file_mmap_size_max(struct file *file, struct inode *inode)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| Name | Describe |
|---|---|
| file_mmap_ok |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |