函数逻辑报告 |
Source Code:mm\vmalloc.c |
Create Date:2022-07-27 16:28:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Merge 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.
函数原型:static __always_inline struct vmap_area *merge_or_add_vmap_area(struct vmap_area *va, struct rb_root *root, struct list_head *head)
返回类型:struct vmap_area
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vmap_area * | va | |
struct rb_root * | root | |
struct list_head * | head |
694 | bool merged = false |
700 | link等于This function returns back addresses of parent node* and its left or right link for further processing. |
705 | next等于get_va_next_sibling(parent, link) |
706 | 如果此条件成立可能性小(为编译器优化)(next == NULL)则转到:insert |
760 | insert : |
761 | 如果非merged则 |
766 | 返回:va |
名称 | 描述 |
---|---|
free_vmap_area | Free a region of KVA allocated by alloc_vmap_area |
__purge_vmap_area_lazy | Purges all lazily-freed vmap areas. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |