函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_vmas - unmap a range of memory covered by a list of vma's*@tlb: address of the caller's struct mmu_gather*@vma: the starting vma*@start_addr: virtual address at which to start unmapping*@end_addr: virtual address at which to end unmapping

函数原型:void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr)

返回类型:void

参数:

类型参数名称
struct mmu_gather *tlb
struct vm_area_struct *vma
unsigned longstart_addr
unsigned longend_addr
1328  mmu_notifier_range_init( & range, MMU_NOTIFY_UNMAP, 0, vma, The address space we belong to. , start_addr, end_addr)
1330  mmu_notifier_invalidate_range_start( & range)
1331 vmaOur start address within vm_mm. 小于end_addr循环unmap_single_vma(tlb, vma, start_addr, end_addr, NULL)
1333  mmu_notifier_invalidate_range_end( & range)
调用者
名称描述
unmap_region
exit_mmapRelease all mmaps.