函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:world_obj_get

函数原型:static struct objagg_obj *world_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id)

返回类型:struct objagg_obj

参数:

类型参数名称
struct world *world
struct objagg *objagg
unsigned intkey_id
54  id等于key_id
55  objagg_obj等于bjagg_obj_get - gets an object within objagg instance*@objagg: objagg instance*@obj: user-specific private object pointer* Note: all locking must be provided by the caller
56  如果是错误
57  打印错误信息("Key %u: Failed to get object.\n", key_id)
58  返回:objagg_obj
60  如果非key_refs[key_id_index(key_id)]则
61  objagg_objs[key_id_index(key_id)]等于objagg_obj
62  否则如果objagg_objs[key_id_index(key_id)]不等于objagg_obj
63  打印错误信息("Key %u: God another object for the same key.\n", key_id)
65  err等于负EINVAL
66  转到:err_key_id_check
68  key_refs[key_id_index(key_id)]自加
69  返回:objagg_obj
71  err_key_id_check :
72  objagg_obj_put(objagg, objagg_obj)
73  返回:错误号
调用者
名称描述
test_nodelta_obj_get
test_delta_action_item
test_hints_case