Function report |
Source Code:mm\kmemleak.c |
Create Date:2022-07-28 16:21:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Memory pool allocation and freeing. kmemleak_lock must not be held.
Proto:static struct kmemleak_object *mem_pool_alloc(gfp_t gfp)
Type:struct kmemleak_object
Parameter:
| Type | Parameter | Name |
|---|---|---|
| gfp_t | gfp |
| 422 | If allocation caches for kmemleak internal data Then |
| 432 | If object Then deletes entry from list |
| 434 | Else if mem_pool_free_count Then object = memory pool allocation [--mem_pool_free_count] |
| 436 | Else pr_warn_once("Memory pool empty, consider increasing CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE\n") |
| 438 | write_unlock_irqrestore( & w_lock protecting the access to object_list and object_tree_root , flags) |
| 440 | Return object |
| Name | Describe |
|---|---|
| create_object | Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root. |
| 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 |