函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\objagg.c Create Date:2022-07-27 08:22:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:objagg_hints_node_create

函数原型: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)

返回类型:struct objagg_hints_node

参数:

类型参数名称
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等于分配内存并置零
658  如果非hnode则返回:错误号
660  内存复制(obj, & obj, obj_size)
661  user_count等于user_count
662  includes delta object users 等于user_count
663  如果parent_hnode
664  includes delta object users 加等于user_count
665  否则
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  如果err则转到:err_ht_insert
676  添加链表项
677  parent等于parent_hnode
678  node_count自加
680  返回:hnode
682  err_ht_insert :
683  kfree(hnode)
684  返回:错误号
调用者
名称描述
objagg_opt_simple_greedy_fillup_hints