函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void zap_page_range(struct vm_area_struct *vma, unsigned long start, unsigned long size)

返回类型:void

参数:

类型参数名称
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 vmaOur start address within vm_mm. 小于end循环unmap_single_vma( & tlb, vma, start, end, NULL)
1358  mmu_notifier_invalidate_range_end( & range)
1359  tlb_finish_mmu( & tlb, start, end)
调用者
名称描述
madvise_dontneed_single_vmaApplication no longer needs these pages