Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Requires inode->i_mapping->i_mmap_rwsem

Proto:static void __remove_shared_vm_struct(struct vm_area_struct *vma, struct file *file, struct address_space *mapping)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
struct file *file
struct address_space *mapping
142  If Flags, see mm.h. & ETXTBSY on write attempts.. Then atomic_inc( & i_writecount)
144  If Flags, see mm.h. & VM_SHARED Then mapping_unmap_writable(mapping)
147  flush_dcache_mmap_lock(mapping)
148  vma_interval_tree_remove(vma, & i_mmap)
149  flush_dcache_mmap_unlock(mapping)
Caller
NameDescribe
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