函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-27 17:56:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Mark the object as not allocated and schedule RCU freeing via put_object().

函数原型:static void __delete_object(struct kmemleak_object *object)

返回类型:void

参数:

类型参数名称
struct kmemleak_object *object
663  WARN_ON(!(bject status flags & lag representing the memory block allocation status ))
664  WARN_ON(atomic_read( & bject usage count; object freed when use_count == 0 ) < 1)
670  spin_lock_irqsave( & lock, flags)
671  bject status flags 与等于lag representing the memory block allocation status 的反
672  spin_unlock_irqrestore( & lock, flags)
673  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
调用者
名称描述
delete_object_fullLook up the metadata (struct kmemleak_object) corresponding to ptr and* delete it.
delete_object_partLook 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.
__kmemleak_do_cleanup