函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:20:10 |
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Drain an array if it contains any elements taking the node lock only if* necessary. Note that the node listlock also protects the array_cache* if drain_array() is used on the shared array.
函数原型:static void drain_array(struct kmem_cache *cachep, struct kmem_cache_node *n, struct array_cache *ac, int node)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kmem_cache * | cachep | |
| struct kmem_cache_node * | n | |
| struct array_cache * | ac | |
| int | node |
| 3999 | check_mutex_acquired() |
| 4004 | 如果touched则 |
| 4005 | touched等于0 |
| 4006 | 返回 |
| 4009 | spin_lock_irq( & list_lock) |
| 4010 | drain_array_locked(cachep, ac, node, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., & list) |
| 4011 | spin_unlock_irq( & list_lock) |
| 4013 | slabs_destroy(cachep, & list) |
| 名称 | 描述 |
|---|---|
| cache_reap | ache_reap - Reclaim memory from caches |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |