Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Mark the object as not allocated and schedule RCU freeing via put_object().

Proto:static void __delete_object(struct kmemleak_object *object)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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