Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:move_vm_area - find and remove a continuous kernel virtual area*@addr: base address* Search for the kernel VM area starting at @addr, and remove it.* This function returns the found VM area, but using it is NOT safe

Proto:struct vm_struct *remove_vm_area(const void *addr)

Type:struct vm_struct

Parameter:

TypeParameterName
const void *addr
2198  might_sleep()
2200  spin_lock( & vmap_area_lock)
2201  va = __find_vmap_area((unsignedlong)addr)
2202  If va && in "busy" tree Then
2203  vm = in "busy" tree
2205  in "busy" tree = NULL
2206  spin_unlock( & vmap_area_lock)
2208  kasan_free_shadow(vm)
2209  Free and unmap a vmap area
2211  Return vm
2214  spin_unlock( & vmap_area_lock)
2215  Return NULL
Caller
NameDescribe
vm_remove_mappingsHandle removing and resetting vm mappings related to the vm_struct.
__vmalloc_area_node
free_vm_area