Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__vma_link_file

Proto:static void __vma_link_file(struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
616  file = File we map to (can be NULL).
617  If file Then
618  mapping = f_mapping
620  If Flags, see mm.h. & ETXTBSY on write attempts.. Then atomic_dec( & i_writecount)
622  If Flags, see mm.h. & VM_SHARED Then atomic_inc( & i_mmap_writable)
625  flush_dcache_mmap_lock(mapping)
626  vma_interval_tree_insert(vma, & i_mmap)
627  flush_dcache_mmap_unlock(mapping)
Caller
NameDescribe
vma_link
__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