Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Close a vm structure and free it, returning the next.

Proto:static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)

Type:struct vm_area_struct

Parameter:

TypeParameterName
struct vm_area_struct *vma
173  next = linked list of VM areas per task, sorted by address
175  might_sleep()
176  If Function pointers to deal with this struct. && close Then close(vma)
178  If File we map to (can be NULL). Then fput(File we map to (can be NULL). )
180  mpol_put(vma_policy(vma))
181  vm_area_free(vma)
182  Return next
Caller
NameDescribe
remove_vma_listOk - 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.
exit_mmapRelease all mmaps.