函数逻辑报告 |
Source Code:lib\debugobjects.c |
Create Date:2022-07-27 07:52:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:We use the pfn of the address for the hash. That way we can check* for freed objects simply by checking the affected bucket.
函数原型:static struct debug_bucket *get_bucket(unsigned long addr)
返回类型:struct debug_bucket
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | addr |
472 | hash等于hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS) |
名称 | 描述 |
---|---|
__debug_object_init | |
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. |
debug_object_deactivate | debug_object_deactivate - debug checks when an object is deactivated*@addr: address of the object*@descr: pointer to an object specific debug description structure |
debug_object_destroy | debug_object_destroy - debug checks when an object is destroyed*@addr: address of the object*@descr: pointer to an object specific debug description structure |
debug_object_free | debug_object_free - debug checks when an object is freed*@addr: address of the object*@descr: pointer to an object specific debug description structure |
debug_object_assert_init | debug_object_assert_init - debug checks when object should be init-ed*@addr: address of the object*@descr: pointer to an object specific debug description structure |
debug_object_active_state | debug_object_active_state - debug checks object usage state machine*@addr: address of the object*@descr: pointer to an object specific debug description structure*@expect: expected state*@next: state to move to if expected state is found |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |