Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\debugobjects.c Create Date:2022-07-28 06:55:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:debug_object_free - debug checks when an object is freed*@addr: address of the object*@descr: pointer to an object specific debug description structure

Proto:void debug_object_free(void *addr, struct debug_obj_descr *descr)

Type:void

Parameter:

TypeParameterName
void *addr
struct debug_obj_descr *descr
807  If Not debug_objects_enabled Then Return
810  db = We use the pfn of the address for the hash. That way we can check* for freed objects simply by checking the affected bucket.
812  raw_spin_lock_irqsave( & lock, flags)
814  obj = Lookup an object in the hash bucket.
815  If Not obj Then Go to out_unlock
819  Case state == ODEBUG_STATE_ACTIVE
820  state = state
821  raw_spin_unlock_irqrestore( & lock, flags)
822  debug_print_object(obj, "free")
823  Try to repair the damage, so we have a better chance to get useful* debug output.
824  Return
825  Default
826  hlist_del( & node)
827  raw_spin_unlock_irqrestore( & lock, flags)
828  Put the object back into the pool and schedule work to free objects* if necessary.
829  Return
831  out_unlock :
832  raw_spin_unlock_irqrestore( & lock, flags)