函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__find_vmap_area

函数原型:static struct vmap_area *__find_vmap_area(unsigned long addr)

返回类型:struct vmap_area

参数:

类型参数名称
unsigned longaddr
416  n等于rb_node
418 n循环
421  va等于rb_entry(n, structvmap_area, rb_node)
422  如果addr小于va_startn等于rb_left
424  否则如果addr大于等于va_endn等于rb_right
426  否则返回:va
430  返回:NULL
调用者
名称描述
find_vmap_area
remove_vm_areamove_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