Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Release all mmaps.

Proto:void exit_mmap(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
3081  nr_accounted = 0
3084  mmu_notifier_release(mm)
3086  If Value for the false possibility is greater at compile time(Use this helper if tsk->mm != mm and the victim mm needs a special* handling. This is guaranteed to stay true after once set.) Then
3103  __oom_reap_task_mm(mm)
3105  Atomically set a bit in memory
3106  lock for writing
3107  lease a write lock
3110  If Pages that have PG_mlocked set Then
3111  vma = list of VMAs
3112  When vma cycle
3119  arch_exit_mmap(mm)
3121  vma = list of VMAs
3122  If Not vma Then Return
3125  lru_add_drain()
3126  flush_cache_mm(mm)
3127  tlb_gather_mmu( & tlb, mm, 0, - 1)
3130  map_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
3131  free_pgtables( & tlb, vma, FIRST_USER_ADDRESS, On almost all architectures and configurations, 0 can be used as the* upper ceiling to free_pgtables(): on many architectures it has the same* effect as using TASK_SIZE. However, there is one configuration which)
3132  tlb_finish_mmu( & tlb, 0, - 1)
3138  When vma cycle
3139  If Flags, see mm.h. & Is a VM accounted object Then nr_accounted += vma_pages(vma)
3141  vma = Close a vm structure and free it, returning the next.
3143  vm_unacct_memory(nr_accounted)
Caller
NameDescribe
__mmput