函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unlink_va

函数原型:static __always_inline void unlink_va(struct vmap_area *va, struct rb_root *root)

返回类型:void

参数:

类型参数名称
struct vmap_area *va
struct rb_root *root
542  如果WARN_ON('empty' nodes are nodes that are known not to be inserted in an rbtree ( & address sorted rbtree ))则返回
545  如果root恒等于This augment red-black tree represents the free vmap spacerb_erase_augmented( & address sorted rbtree , root, & free_vmap_area_rb_augment_cb)
548  否则rb_erase( & address sorted rbtree , root)
551  删除链表项
552  RB_CLEAR_NODE( & address sorted rbtree )
调用者
名称描述
merge_or_add_vmap_areaMerge de-allocated chunk of VA memory with previous* and next free blocks. If coalesce is not done a new* free area is inserted. If VA has been merged, it is* freed.
adjust_va_to_fit_type
free_vmap_areaFree a region of KVA allocated by alloc_vmap_area
free_vmap_area_noflushFree a vmap area, caller ensuring that the area has been unmapped* and flush_cache_vunmap had been called for the correct range* previously.