函数逻辑报告 |
Source Code:lib\debugobjects.c |
Create Date:2022-07-27 07:52:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__free_object
函数原型:static void __free_object(struct debug_obj *obj)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct debug_obj * | obj |
345 | lookahead_count等于0 |
349 | local_irq_save(flags) |
350 | 如果非obj_cache则转到:free_to_obj_pool |
356 | percpu_pool等于this_cpu_ptr( & percpu_obj_pool) |
357 | 如果obj_free小于ODEBUG_POOL_PERCPU_SIZE则 |
370 | 如果非objs[lookahead_count]则退出 |
372 | obj_free自减 |
375 | free_to_obj_pool : |
376 | raw_spin_lock( & pool_lock) |
379 | obj_pool_used自减 |
381 | 如果work则 |
382 | WRITE_ONCE(The number of objs on the global free list , The number of objs on the global free list + 1) |
383 | hlist_add_head( & node, & obj_to_free) |
384 | 如果lookahead_count则 |
385 | WRITE_ONCE(The number of objs on the global free list , The number of objs on the global free list + lookahead_count) |
386 | obj_pool_used减等于lookahead_count |
387 | 当lookahead_count循环 |
388 | hlist_add_head( & node, & obj_to_free) |
400 | 以i小于ODEBUG_BATCH_SIZE循环 |
407 | 否则 |
408 | WRITE_ONCE(obj_pool_free, obj_pool_free + 1) |
409 | hlist_add_head( & node, & obj_pool) |
410 | 如果lookahead_count则 |
419 | raw_spin_unlock( & pool_lock) |
420 | local_irq_restore(flags) |
名称 | 描述 |
---|---|
free_object | Put the object back into the pool and schedule work to free objects* if necessary. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |