Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_obj_init_with_hints

Proto:static int objagg_obj_init_with_hints(struct objagg *objagg, struct objagg_obj *objagg_obj, bool *hint_found)

Type:int

Parameter:

TypeParameterName
struct objagg *objagg
struct objagg_obj *objagg_obj
bool *hint_found
303  hnode = objagg_hints_lookup(hints, obj)
304  If Not hnode Then
305  * hint_found = false
306  Return 0
308  * hint_found = true
310  If Not parent Then Return objagg_obj_root_create(objagg, objagg_obj, hnode)
313  parent = __objagg_obj_get(objagg, obj)
314  If IS_ERR(parent) Then Return PTR_ERR(parent)
317  err = objagg_obj_parent_assign(objagg, objagg_obj, parent, false)
318  If err Then
319  * hint_found = false
320  err = 0
321  Go to err_parent_assign
324  Return 0
326  err_parent_assign :
327  bjagg_obj_put - puts an object within objagg instance*@objagg: objagg instance*@objagg_obj: objagg object instance* Note: all locking must be provided by the caller.* Symmetric to objagg_obj_get().
328  Return err
Caller
NameDescribe
objagg_obj_init