函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Requires inode->i_mapping->i_mmap_rwsem

函数原型:static void __remove_shared_vm_struct(struct vm_area_struct *vma, struct file *file, struct address_space *mapping)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
struct file *file
struct address_space *mapping
142  如果Flags, see mm.h. 按位与ETXTBSY on write attempts.. atomic_inc( & i_writecount)
144  如果Flags, see mm.h. 按位与VM_SHAREDmapping_unmap_writable(mapping)
147  flush_dcache_mmap_lock(mapping)
148  vma_interval_tree_remove(vma, & i_mmap)
149  flush_dcache_mmap_unlock(mapping)
调用者
名称描述
unlink_file_vmaUnlink a file-based vm structure from its interval tree, to hide* vma from rmap and vmtruncate before freeing its page tables.
__vma_adjustWe cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that* is already present in an i_mmap tree without adjusting the tree.* The following helper function should be used when such adjustments* are necessary