函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:18:32 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:drain_freelist
函数原型:static int drain_freelist(struct kmem_cache *cache, struct kmem_cache_node *n, int tofree)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | cache | |
struct kmem_cache_node * | n | |
int | tofree |
2237 | nr_freed等于0 |
2240 | spin_lock_irq( & list_lock) |
2242 | 如果p恒等于slabs_free则 |
2243 | spin_unlock_irq( & list_lock) |
2244 | 转到:out |
2248 | 删除链表项 |
2249 | free_slabs自减 |
2250 | total_slabs自减 |
2255 | free_objects减等于num |
2256 | spin_unlock_irq( & list_lock) |
2258 | nr_freed自加 |
2260 | out : |
2261 | 返回:nr_freed |
名称 | 描述 |
---|---|
drain_cache_node_node | Drains freelist for a node on each slab cache, used for memory hot-remove.* Returns -EBUSY if all objects cannot be drained so that the node is not* removed.* Must hold slab_mutex. |
__kmem_cache_shrink | |
cache_reap | ache_reap - Reclaim memory from caches |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |