Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:madvise_free_single_vma

Proto:static int madvise_free_single_vma(struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longstart_addr
unsigned longend_addr
696  mm = The address space we belong to.
701  If Not vma_is_anonymous(vma) Then Return -EINVAL
704  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)
705  If start >= The first byte after our end addresswithin vm_mm. Then Return -EINVAL
707  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)
708  If end <= Our start address within vm_mm. Then Return -EINVAL
710  mmu_notifier_range_init( & range, MMU_NOTIFY_CLEAR, 0, vma, mm, start, end)
713  lru_add_drain()
714  lb_gather_mmu - initialize an mmu_gather structure for page-table tear-down*@tlb: the mmu_gather structure to initialize*@mm: the mm_struct of the target address space*@start: start of the region that will be removed from the page-table*@end: end of the
715  update_hiwater_rss(mm)
717  mmu_notifier_invalidate_range_start( & range)
718  tlb_start_vma( & tlb, vma)
719  walk_page_range - walk page table with caller specific callbacks*@mm: mm_struct representing the target process of page table walk*@start: start address of the virtual address range*@end: end address of the virtual address range*@ops: operation to call
721  tlb_end_vma( & tlb, vma)
722  mmu_notifier_invalidate_range_end( & range)
723  lb_finish_mmu - finish an mmu_gather structure*@tlb: the mmu_gather structure to finish*@start: start of the region that will be removed from the page-table*@end: end of the region that will be removed from the page-table* Called at the end of the
725  Return 0
Caller
NameDescribe
madvise_dontneed_free