Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-28 16:21:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return the object to either the slab allocator or the memory pool.

Proto:static void mem_pool_free(struct kmemleak_object *object)

Type:void

Parameter:

TypeParameterName
struct kmemleak_object *object
450  If object < memory pool allocation || object >= memory pool allocation + ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(memory pool allocation ) Then
451  kmem_cache_free(allocation caches for kmemleak internal data , object)
452  Return
456  write_lock_irqsave( & w_lock protecting the access to object_list and object_tree_root , flags)
457  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
458  write_unlock_irqrestore( & w_lock protecting the access to object_list and object_tree_root , flags)
Caller
NameDescribe
free_object_rcuRCU callback to free a kmemleak_object.