函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:struct vm_struct *remove_vm_area(const void *addr)

返回类型:struct vm_struct

参数:

类型参数名称
const void *addr
2198  might_sleep()
2200  加自旋锁
2201  va等于__find_vmap_area((unsignedlong)addr)
2202  如果va in "busy" tree
2203  vm等于 in "busy" tree
2205  in "busy" tree = NULL
2206  自旋锁解锁
2208  kasan_free_shadow(vm)
2209  Free and unmap a vmap area
2211  返回:vm
2214  自旋锁解锁
2215  返回:NULL
调用者
名称描述
vm_remove_mappingsHandle removing and resetting vm mappings related to the vm_struct.
__vmalloc_area_node
free_vm_area