Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_obj_create

Proto:static struct objagg_obj *objagg_obj_create(struct objagg *objagg, void *obj)

Type:struct objagg_obj

Parameter:

TypeParameterName
struct objagg *objagg
void *obj
369  objagg_obj = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
371  If Not objagg_obj Then Return ERR_PTR( - ENOMEM)
373  objagg_obj_ref_inc(objagg_obj)
374  No 3D Now!(obj, obj, obj_size)
376  err = objagg_obj_init(objagg, objagg_obj)
377  If err Then Go to err_obj_init
380  err = hashtable_insert_fast - insert object into hash table*@ht: hash table*@obj: pointer to hash head inside object*@params: hash table parameters* Will take the per bucket bitlock to protect against mutual mutations* on the same bucket
382  If err Then Go to err_ht_insert
384  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
385  obj_count++
386  trace_objagg_obj_create(objagg, objagg_obj)
388  Return objagg_obj
390  err_ht_insert :
391  objagg_obj_fini(objagg, objagg_obj)
392  err_obj_init :
393  kfree(objagg_obj)
394  Return ERR_PTR(err)
Caller
NameDescribe
__objagg_obj_get