Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void zap_page_range_single(struct vm_area_struct *vma, unsigned long address, unsigned long size, struct zap_details *details)

Type:void

Parameter:

TypeParameterName
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)
Caller
NameDescribe
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