函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Release all mmaps.

函数原型:void exit_mmap(struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
3081  nr_accounted等于0
3084  mmu_notifier_release(mm)
3086  如果此条件成立可能性小(为编译器优化)(Use this helper if tsk->mm != mm and the victim mm needs a special* handling. This is guaranteed to stay true after once set.)则
3103  __oom_reap_task_mm(mm)
3105  设置内存位
3106  lock for writing
3107  lease a write lock
3110  如果 Pages that have PG_mlocked set
3111  vma等于 list of VMAs
3112 vma循环
3119  arch_exit_mmap(mm)
3121  vma等于 list of VMAs
3122  如果非vma则返回
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 vma循环
3139  如果Flags, see mm.h. 按位与Is a VM accounted object nr_accounted加等于vma_pages(vma)
3141  vma等于Close a vm structure and free it, returning the next.
3143  vm_unacct_memory(nr_accounted)
调用者
名称描述
__mmput