函数逻辑报告 |
Source Code:lib\debugobjects.c |
Create Date:2022-07-27 07:52:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Convert the statically allocated objects to dynamic ones:
函数原型:static int __init debug_objects_replace_static_objects(void)
返回类型:int
参数:无
1301 | cnt等于0 |
1303 | 以i小于ODEBUG_POOL_SIZE循环 |
1320 | 移出列表 |
1323 | 以i小于ODEBUG_HASH_SIZE循环 |
1324 | 移出列表 |
1327 | new等于hlist_entry(first, typeof( * obj), node) |
1331 | hlist_add_head( & node, & list) |
1332 | cnt自加 |
1336 | pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used) |
1338 | 返回:0 |
1339 | free : |
1342 | kmem_cache_free(obj_cache, obj) |
1344 | 返回:负ENOMEM |
名称 | 描述 |
---|---|
debug_objects_mem_init | Called after the kmem_caches are functional to setup a dedicated* cache pool, which has the SLAB_DEBUG_OBJECTS flag set. This flag* prevents that the debug code is called on kmem_cache_free() for the* debug tracker objects to avoid recursive calls. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |