函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:debug_object_destroy - debug checks when an object is destroyed*@addr: address of the object*@descr: pointer to an object specific debug description structure

函数原型:void debug_object_destroy(void *addr, struct debug_obj_descr *descr)

返回类型:void

参数:

类型参数名称
void *addr
struct debug_obj_descr *descr
756  bool print_object = false
758  如果非debug_objects_enabled则返回
761  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.
763  raw_spin_lock_irqsave( & lock, flags)
765  obj等于Lookup an object in the hash bucket.
766  如果非obj则转到:out_unlock
770  :state恒等于ODEBUG_STATE_NONE
771  :state恒等于ODEBUG_STATE_INIT
772  :state恒等于ODEBUG_STATE_INACTIVE
773  state等于ODEBUG_STATE_DESTROYED
774  退出
775  :state恒等于ODEBUG_STATE_ACTIVE
776  state等于state
777  raw_spin_unlock_irqrestore( & lock, flags)
778  debug_print_object(obj, "destroy")
779  Try to repair the damage, so we have a better chance to get useful* debug output.
780  返回
782  :state恒等于ODEBUG_STATE_DESTROYED
783  print_object = true
784  退出
785  默认
786  退出
788  out_unlock :
789  raw_spin_unlock_irqrestore( & lock, flags)
790  如果print_objectdebug_print_object(obj, "destroy")