| Function report | 
| Source Code: mm\kmemleak.c | Create Date:2022-07-28 16:22:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Scan a memory block corresponding to a kmemleak_object. A condition is* that object->use_count >= 1.
Proto:static void scan_object(struct kmemleak_object *object)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmemleak_object * | object | 
| 1327 | spin_lock_irqsave( & lock, flags) | 
| 1328 | If bject status flags & lag set to not scan the object Then Go to out | 
| 1330 | If Not (bject status flags & lag representing the memory block allocation status ) Then Go to out | 
| 1339 | Do | 
| 1340 | next = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(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) | 
| Name | Describe | 
|---|---|
| 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. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |