函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zap_page_range_single - remove user pages in a given range*@vma: vm_area_struct holding the applicable pages*@address: starting address of pages to zap*@size: number of bytes to zap*@details: details of shared cache invalidation

函数原型:static void zap_page_range_single(struct vm_area_struct *vma, unsigned long address, unsigned long size, struct zap_details *details)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longaddress
unsigned longsize
struct zap_details *details
1377  lru_add_drain()
1378  mmu_notifier_range_init( & range, MMU_NOTIFY_CLEAR, 0, vma, The address space we belong to. , address, address + size)
1380  tlb_gather_mmu( & tlb, The address space we belong to. , address, end)
1381  update_hiwater_rss(The address space we belong to. )
1382  mmu_notifier_invalidate_range_start( & range)
1383  unmap_single_vma( & tlb, vma, address, end, details)
1384  mmu_notifier_invalidate_range_end( & range)
1385  tlb_finish_mmu( & tlb, address, end)
调用者
名称描述
zap_vma_pteszap_vma_ptes - remove ptes mapping the vma*@vma: vm_area_struct holding ptes to be zapped*@address: starting address of pages to zap*@size: number of bytes to zap* This function only unmaps ptes assigned to VM_PFNMAP vmas.
unmap_mapping_range_vma