函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:18:52 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:cache_grow_end
函数原型:static void cache_grow_end(struct kmem_cache *cachep, struct page *page)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | cachep | |
struct page * | page |
2699 | void * list = NULL |
2701 | check_irq_off() |
2703 | 如果非page则返回 |
2706 | 初始化链表头 |
2707 | n等于get_node(cachep, page_to_nid(page)) |
2709 | 加自旋锁 |
2710 | total_slabs自加 |
2711 | 如果非 SLAB 则 |
2712 | 添加链表项 |
2713 | free_slabs自加 |
2714 | 否则fixup_slab_list(cachep, n, page, & list) |
2717 | STATS_INC_GROWN(cachep) |
2718 | free_objects加等于num减 SLAB |
2719 | 自旋锁解锁 |
2721 | fixup_objfreelist_debug(cachep, & list) |
名称 | 描述 |
---|---|
cache_alloc_refill | |
fallback_alloc | Fallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node |
____cache_alloc_node | A interface to enable slab creation on nodeid |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |