函数逻辑报告 |
Source Code:mm\kmemleak.c |
Create Date:2022-07-27 17:56:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Scan a memory block corresponding to a kmemleak_object. A condition is* that object->use_count >= 1.
函数原型:static void scan_object(struct kmemleak_object *object)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmemleak_object * | object |
1327 | spin_lock_irqsave( & lock, flags) |
1328 | 如果bject status flags 按位与lag set to not scan the object 则转到:out |
1330 | 如果非bject status flags 按位与lag representing the memory block allocation status 的值则转到:out |
1339 | 循环 |
1340 | next等于两数取小(start + maximum size of a scanned block , end) |
1341 | Scan a memory block (exclusive range) for valid pointers and add those* found to the gray list. |
1347 | spin_unlock_irqrestore( & lock, flags) |
1348 | cond_resched() |
1349 | spin_lock_irqsave( & lock, flags) |
1353 | Scan a memory block (exclusive range) for valid pointers and add those* found to the gray list. |
1356 | out : |
1357 | spin_unlock_irqrestore( & lock, flags) |
名称 | 描述 |
---|---|
scan_gray_list | Scan the objects already referenced (gray objects). More objects will be* referenced and, if there are no memory leaks, all the objects are scanned. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |