函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:04:33
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mmu_shrink_inode_mappings - Shrink the shared mappings on an inode*@inode: The inode to check*@size: The current filesize of the inode*@newsize: The proposed filesize of the inode* Check the shared mappings on an inode on behalf of a shrinking truncate

函数原型:int nommu_shrink_inode_mappings(struct inode *inode, size_t size, size_t newsize)

返回类型:int

参数:

类型参数名称
struct inode *inode
size_tsize
size_tnewsize
1800  low等于newsize右移PAGE_SHIFT determines the page size
1801  high等于sizePAGE_SIZE减1右移PAGE_SHIFT determines the page size
1803  lock for writing
1804  i_mmap_lock_read(i_mapping)
1810  如果Flags, see mm.h. 按位与VM_SHARED
1811  i_mmap_unlock_read(i_mapping)
1812  lease a write lock
1813  返回:负ETXTBSY
1824  如果非Flags, see mm.h. 按位与VM_SHARED的值则继续下一循环
1827  region等于vm_region
1828  r_size等于gion allocated to here start address of region
1829  r_top等于he offset in vm_file corresponding to vm_start 左移PAGE_SHIFT determines the page size 位的值加r_size
1831  如果r_top大于newsize
1838  i_mmap_unlock_read(i_mapping)
1839  lease a write lock
1840  返回:0
调用者
名称描述
ramfs_nommu_resize