Function Report

Linux Kernel (v4.4)

Source File:include\linux\fs.h Create Date:2016-01-14 09:11:21
Last Modify:2016-01-12 20:11:18 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:i_mmap_lock_write

Function:static inline void i_mmap_lock_write(struct address_space *mapping)

Return Type:static inline void


Type Parameter NameRemarks
struct address_space * mapping

Function description:

499  lock for writing
Function NameFunction description
add_vma_to_mmadd a VMA into a process's mm_struct in the appropriate place in the list and tree and add to the address space's page tree also if not an anonymous page- should be called with mm->mmap_sem held writelocked
delete_vma_from_mmdelete a VMA from its owning mm_struct and address space
unmap_mapping_range unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file.
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
unmap_ref_privateThis is called when the original mapper is failing to COW a MAP_PRIVATE mappping it owns the reserve page for. The intention is to unmap the page from other VMAs and let the children be SIGKILLed if they are faulting the same region.