函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:21:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Remove the cpu slab
函数原型:static void deactivate_slab(struct kmem_cache *s, struct page *page, void *freelist, struct kmem_cache_cpu *c)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
struct page * | page | |
void * | freelist | |
struct kmem_cache_cpu * | c |
2042 | enum slab_modes{M_NONE, M_PARTIAL, M_FULL, M_FREE} |
2043 | n等于get_node(s, page_to_nid(page)) |
2044 | lock等于0 |
2051 | 如果 first free object 则 |
2068 | 循环 |
2098 | redo : |
2100 | first free object 等于 first free object |
2106 | 如果freelist则 |
2107 | SLUB 自减 |
2108 | set_freepointer(s, freelist, first free object ) |
2109 | first free object 等于freelist |
2110 | 否则 first free object 等于 first free object |
2113 | frozen等于0 |
2115 | 如果非 SLUB 且nr_partial大于等于min_partial则m等于M_FREE |
2117 | 否则如果 first free object 则 |
2128 | 否则 |
2142 | 如果l恒等于M_PARTIAL则remove_partial(n, page) |
2165 | 否则如果m恒等于M_FULL则stat(s, Cpu slab was full when deactivated ) |
2168 | stat(s, Cpu slab was empty when deactivated ) |
2169 | discard_slab(s, page) |
2170 | stat(s, Slab freed to the page allocator ) |
2173 | The slab from which we are allocating = NULL |
2174 | Pointer to next available object = NULL |
名称 | 描述 |
---|---|
flush_slab | |
___slab_alloc | Slow path. The lockless freelist is empty or we need to perform* debugging duties.* Processing is still very fast if new objects have been freed to the* regular freelist. In that case we simply take over the regular freelist |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |