Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
struct vm_area_struct *vma
2562  nr_accounted = 0
2565  update_hiwater_vm(mm)
2566  Do
2567  nrpages = vma_pages(vma)
2569  If Flags, see mm.h. & Is a VM accounted object Then 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  When vma cycle
2574  vm_unacct_memory(nr_accounted)
2575  validate_mm(mm)
Caller
NameDescribe
__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