函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
void *addr
struct debug_obj_descr *descr
703  bool print_object = false
705  如果非debug_objects_enabled则返回
708  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.
710  raw_spin_lock_irqsave( & lock, flags)
712  obj等于Lookup an object in the hash bucket.
713  如果obj
715  :state恒等于ODEBUG_STATE_INIT
716  :state恒等于ODEBUG_STATE_INACTIVE
717  :state恒等于ODEBUG_STATE_ACTIVE
718  如果非astatestate等于ODEBUG_STATE_INACTIVE
720  否则print_object = true
722  退出
725  print_object = true
726  退出
727  默认
728  退出
732  raw_spin_unlock_irqrestore( & lock, flags)
733  如果非obj
734  struct debug_obj o = {object = addr, state = ODEBUG_STATE_NOTAVAILABLE, descr = descr}
738  debug_print_object( & o, "deactivate")
739  否则如果print_object
740  debug_print_object(obj, "deactivate")