| Function report | 
| Source Code: mm\kmemleak.c | Create Date:2022-07-28 16:21:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Decrement the object use_count. Once the count is 0, free the object using* an RCU callback. Since put_object() may be called via the kmemleak_free() ->* delete_object() path, the delayed RCU freeing ensures that there is no
Proto:static void put_object(struct kmemleak_object *object)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmemleak_object * | object | 
| 491 | If Not atomic_dec_and_test( & bject usage count; object freed when use_count == 0 ) Then Return | 
| Name | Describe | 
|---|---|
| __delete_object | Mark the object as not allocated and schedule RCU freeing via put_object(). | 
| paint_ptr | |
| add_scan_area | Add a scanning area to the object. If at least one such area is added,* kmemleak will only scan these ranges rather than the whole memory block. | 
| object_set_excess_ref | Any surplus references (object already gray) to 'ptr' are passed to* 'excess_ref'. This is used in the vmalloc() case where a pointer to* vm_struct may be used as an alternative reference to the vmalloc'ed object* (see free_thread_stack()). | 
| object_no_scan | Set the OBJECT_NO_SCAN flag for the object corresponding to the give* pointer. Such object will not be scanned by kmemleak but references to it* are searched. | 
| kmemleak_update_trace | kmemleak_update_trace - update object allocation stack trace*@ptr: pointer to beginning of the object* Override the object allocation stack trace for cases where the actual* allocation place is not always useful. | 
| 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. | 
| kmemleak_seq_next | Return the next object in the object_list. The function decrements the* use_count of the previous object and increases that of the next one. | 
| kmemleak_seq_stop | Decrement the use_count of the last object required, if any. | 
| dump_str_object_info | 
| 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 |