Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_obj_root_id_alloc

Proto:static int objagg_obj_root_id_alloc(struct objagg *objagg, struct objagg_obj *objagg_obj, struct objagg_hints_node *hnode)

Type:int

Parameter:

TypeParameterName
struct objagg *objagg
struct objagg_obj *objagg_obj
struct objagg_hints_node *hnode
229  If Not hints Then
230  root_id = OBJAGG_OBJ_ROOT_ID_INVALID
231  Return 0
234  If hnode Then
235  min = root_id
236  max = root_id
237  Else
241  min = root_count
242  max = ~0
245  root_id = da_alloc_range() - Allocate an unused ID.*@ida: IDA handle.*@min: Lowest ID to allocate.*@max: Highest ID to allocate.*@gfp: Memory allocation flags.* Allocate an ID between @min and @max, inclusive. The allocated ID will
247  If root_id < 0 Then Return root_id
249  root_id = root_id
250  Return 0
Caller
NameDescribe
objagg_obj_root_create