函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Lookup an object in the hash bucket.

函数原型:static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b)

返回类型:struct debug_obj

参数:

类型参数名称
void *addr
struct debug_bucket *b
193  cnt等于0
196  cnt自加
197  如果object恒等于addr则返回:obj
200  如果cnt大于debug_objects_maxchaindebug_objects_maxchain等于cnt
203  返回:NULL
调用者
名称描述
__debug_object_init
debug_object_activatedebug_object_activate - debug checks when an object is activated*@addr: address of the object*@descr: pointer to an object specific debug description structure* Returns 0 for success, -EINVAL for check failed.
debug_object_deactivatedebug_object_deactivate - debug checks when an object is deactivated*@addr: address of the object*@descr: pointer to an object specific debug description structure
debug_object_destroydebug_object_destroy - debug checks when an object is destroyed*@addr: address of the object*@descr: pointer to an object specific debug description structure
debug_object_freedebug_object_free - debug checks when an object is freed*@addr: address of the object*@descr: pointer to an object specific debug description structure
debug_object_assert_initdebug_object_assert_init - debug checks when object should be init-ed*@addr: address of the object*@descr: pointer to an object specific debug description structure
debug_object_active_statedebug_object_active_state - debug checks object usage state machine*@addr: address of the object*@descr: pointer to an object specific debug description structure*@expect: expected state*@next: state to move to if expected state is found