Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:world_obj_get

Proto:static struct objagg_obj *world_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id)

Type:struct objagg_obj

Parameter:

TypeParameterName
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  If IS_ERR(objagg_obj) Then
57  pr_err("Key %u: Failed to get object.\n", key_id)
58  Return objagg_obj
60  If Not key_refs[key_id_index(key_id)] Then
61  objagg_objs[key_id_index(key_id)] = objagg_obj
62  Else if objagg_objs[key_id_index(key_id)] != objagg_obj Then
63  pr_err("Key %u: God another object for the same key.\n", key_id)
65  err = -EINVAL
66  Go to err_key_id_check
68  key_refs[key_id_index(key_id)]++
69  Return objagg_obj
71  err_key_id_check :
72  objagg_obj_put(objagg, objagg_obj)
73  Return ERR_PTR(err)
Caller
NameDescribe
test_nodelta_obj_get
test_delta_action_item
test_hints_case