函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:20:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Lock order:* 1. slab_mutex (Global Mutex)* 2. node->list_lock* 3. slab_lock(page) (Only on some arches and for debugging)* slab_mutex* The role of the slab_mutex is to protect the list of all the slabs
函数原型:static inline int kmem_cache_debug(struct kmem_cache *s)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s |
122 | 返回:0 |
名称 | 描述 |
---|---|
fixup_red_left | |
deactivate_slab | Remove the cpu 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 |
__slab_free | Slow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |