Function report | 
Source Code:mm\kmemleak.c | 
Create Date:2022-07-28 16:21:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Look up the metadata (struct kmemleak_object) corresponding to ptr and* delete it. If the memory block is partially freed, the function may create* additional metadata for the remaining parts of the block.
Proto:static void delete_object_part(unsigned long ptr, size_t size)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | ptr | |
| size_t | size | 
| 706 | If Not object Then | 
| 708 | Print a warning and dump the stack trace.("Partially freeing unknown object at 0x%08lx (size %zu)\n", ptr, size) | 
| 711 | Return | 
| 721 | If ptr > start Then Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root. | 
| 724 | If ptr + size < end Then Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root. | 
| Name | Describe | 
|---|---|
| kmemleak_free_part | kmemleak_free_part - partially unregister a previously registered object*@ptr: pointer to the beginning or inside the object | 
| 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  |