Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unmap_single_vma

Proto:static void unmap_single_vma(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr, struct zap_details *details)

Type:void

Parameter:

TypeParameterName
struct mmu_gather *tlb
struct vm_area_struct *vma
unsigned longstart_addr
unsigned longend_addr
struct zap_details *details
1266  start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(Our start address within vm_mm. , start_addr)
1269  If start >= The first byte after our end addresswithin vm_mm. Then Return
1271  end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(The first byte after our end addresswithin vm_mm. , end_addr)
1272  If end <= Our start address within vm_mm. Then Return
1275  If File we map to (can be NULL). Then Called in context of a munmap of a vma.
1278  If Value for the false possibility is greater at compile time(Flags, see mm.h. & Page-ranges managed without "struct page", just pure PFN ) Then untrack_pfn(vma, 0, 0)
1281  If start != end Then
1299  Else unmap_page_range(tlb, vma, start, end, details)
Caller
NameDescribe
unmap_vmasmap_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
zap_page_rangezap_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
zap_page_range_singlezap_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