函数逻辑报告 |
Source Code:lib\debugobjects.c |
Create Date:2022-07-27 07:52:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:debug_object_activate - debug checks when an object is activated*@addr: address of the object*@descr: pointer to an object specific debug description structure* Returns 0 for success, -EINVAL for check failed.
函数原型:int debug_object_activate(void *addr, struct debug_obj_descr *descr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| void * | addr | |
| struct debug_obj_descr * | descr |
| 631 | 如果非debug_objects_enabled则返回:0 |
| 634 | db等于We use the pfn of the address for the hash. That way we can check* for freed objects simply by checking the affected bucket. |
| 636 | raw_spin_lock_irqsave( & lock, flags) |
| 639 | 如果obj则 |
| 640 | bool print_object = false |
| 643 | 当:state恒等于ODEBUG_STATE_INIT |
| 644 | 当:state恒等于ODEBUG_STATE_INACTIVE |
| 649 | 当:state恒等于ODEBUG_STATE_ACTIVE |
| 651 | raw_spin_unlock_irqrestore( & lock, flags) |
| 652 | debug_print_object(obj, "activate") |
| 656 | 当:state恒等于ODEBUG_STATE_DESTROYED |
| 660 | 默认 |
| 664 | raw_spin_unlock_irqrestore( & lock, flags) |
| 665 | 如果print_object则debug_print_object(obj, "activate") |
| 667 | 返回:ret |
| 670 | raw_spin_unlock_irqrestore( & lock, flags) |
| 679 | 如果is_static_object且is_static_object(addr)则 |
| 683 | 否则 |
| 684 | debug_print_object( & o, "activate") |
| 689 | 返回:0 |
| 名称 | 描述 |
|---|---|
| debug_object_activate | debug_object_activate - debug checks when an object is activated*@addr: address of the object*@descr: pointer to an object specific debug description structure* Returns 0 for success, -EINVAL for check failed. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |