Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_hints_node_create

Proto:static struct objagg_hints_node *objagg_hints_node_create(struct objagg_hints *objagg_hints, struct objagg_obj *objagg_obj, size_t obj_size, struct objagg_hints_node *parent_hnode)

Type:struct objagg_hints_node

Parameter:

TypeParameterName
struct objagg_hints *objagg_hints
struct objagg_obj *objagg_obj
size_tobj_size
struct objagg_hints_node *parent_hnode
653  user_count = user_count
657  hnode = 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).
658  If Not hnode Then Return ERR_PTR( - ENOMEM)
660  No 3D Now!(obj, & obj, obj_size)
661  user_count = user_count
662  includes delta object users = user_count
663  If parent_hnode Then
664  includes delta object users += user_count
665  Else
666  root_id = root_count++
667  is_root = true
669  associated object = objagg_obj
671  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
673  If err Then Go to err_ht_insert
676  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.
677  parent = parent_hnode
678  node_count++
680  Return hnode
682  err_ht_insert :
683  kfree(hnode)
684  Return ERR_PTR(err)
Caller
NameDescribe
objagg_opt_simple_greedy_fillup_hints