Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zap_page_range - remove user pages in a given range*@vma: vm_area_struct holding the applicable pages*@start: starting address of pages to zap*@size: number of bytes to zap* Caller must protect the VMA list

Proto:void zap_page_range(struct vm_area_struct *vma, unsigned long start, unsigned long size)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longstart
unsigned longsize
1350  lru_add_drain()
1351  mmu_notifier_range_init( & range, MMU_NOTIFY_CLEAR, 0, vma, The address space we belong to. , start, start + size)
1353  tlb_gather_mmu( & tlb, The address space we belong to. , start, end)
1354  update_hiwater_rss(The address space we belong to. )
1355  mmu_notifier_invalidate_range_start( & range)
1356  When vma && Our start address within vm_mm. < end cycle unmap_single_vma( & tlb, vma, start, end, NULL)
1358  mmu_notifier_invalidate_range_end( & range)
1359  tlb_finish_mmu( & tlb, start, end)
Caller
NameDescribe
madvise_dontneed_single_vmaApplication no longer needs these pages