函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Ok - we have the memory areas we should free on the vma list,* so release them, and do the vma updates.* Called with the mm semaphore held.

函数原型:static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
struct vm_area_struct *vma
2562  nr_accounted等于0
2565  update_hiwater_vm(mm)
2566  循环
2567  nrpages等于vma_pages(vma)
2569  如果Flags, see mm.h. 按位与Is a VM accounted object nr_accounted加等于nrpages
2571  vm_stat_account(mm, Flags, see mm.h. , - nrpages)
2572  vma等于Close a vm structure and free it, returning the next.
2573 vma循环
2574  vm_unacct_memory(nr_accounted)
2575  validate_mm(mm)
调用者
名称描述
__do_munmapMunmap is split into 2 main parts -- this part which finds* what needs doing, and the areas themselves, which do the* work. This now handles partial unmappings.* Jeremy Fitzhardinge