函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:17:33 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:setup_kmem_cache_node
函数原型:static int setup_kmem_cache_node(struct kmem_cache *cachep, int node, gfp_t gfp, bool force_change)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | cachep | |
int | node | |
gfp_t | gfp | |
bool | force_change |
925 | struct array_cache * old_shared = NULL |
926 | struct array_cache * new_shared = NULL |
927 | struct alien_cache * * new_alien = NULL |
936 | 如果shared则 |
937 | new_shared等于alloc_arraycache(node, shared * batchcount, 0xbaadf00d, gfp) |
939 | 如果非new_shared则转到:fail |
943 | ret等于init_cache_node(cachep, node, gfp) |
948 | spin_lock_irq( & list_lock) |
949 | 如果shared且force_change则 |
952 | avail等于0 |
955 | 如果非shared或force_change则 |
961 | 如果非alien则 |
966 | spin_unlock_irq( & list_lock) |
967 | slabs_destroy(cachep, & list) |
978 | fail : |
979 | 释放内存 |
980 | 释放内存 |
983 | 返回:ret |
名称 | 描述 |
---|---|
setup_kmem_cache_nodes | This initializes kmem_cache_node or resizes various caches for all nodes. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |