函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__vma_link_file

函数原型:static void __vma_link_file(struct vm_area_struct *vma)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
616  file等于File we map to (can be NULL).
617  如果file
618  mapping等于f_mapping
620  如果Flags, see mm.h. 按位与ETXTBSY on write attempts.. atomic_dec( & i_writecount)
622  如果Flags, see mm.h. 按位与VM_SHAREDatomic_inc( & i_mmap_writable)
625  flush_dcache_mmap_lock(mapping)
626  vma_interval_tree_insert(vma, & i_mmap)
627  flush_dcache_mmap_unlock(mapping)
调用者
名称描述
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