函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bjagg_hints_get - obtains hints instance*@objagg: objagg instance*@opt_algo_type: type of hints finding algorithm* Note: all locking must be provided by the caller.* According to the algo type, the existing objects of objagg instance

函数原型:struct objagg_hints *objagg_hints_get(struct objagg *objagg, enum objagg_opt_algo_type opt_algo_type)

返回类型:struct objagg_hints

参数:

类型参数名称
struct objagg *objagg
enum objagg_opt_algo_typeopt_algo_type
943  algo等于objagg_opt_algos[opt_algo_type]
947  objagg_hints等于分配内存并置零
948  如果非objagg_hints则返回:错误号
951  ops等于ops
952  refcount等于1
954  初始化链表头
956  key_len等于obj_size
957  key_offset等于offsetof(structobjagg_hints_node, obj)
959  head_offset等于offsetof(structobjagg_hints_node, ht_node)
961  obj_cmpfn等于objagg_hints_obj_cmp
963  err等于hashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters
964  如果err则转到:err_rhashtable_init
967  err等于fillup_hints(objagg_hints, objagg)
968  如果err则转到:err_fillup_hints
971  如果WARN_ON(node_count != obj_count)则
972  err等于负EINVAL
973  转到:err_node_count_check
976  返回:objagg_hints
978  err_node_count_check :
979  err_fillup_hints :
980  objagg_hints_flush(objagg_hints)
981  rhashtable_destroy( & node_ht)
982  err_rhashtable_init :
983  kfree(objagg_hints)
984  返回:错误号
调用者
名称描述
test_hints_case