函数逻辑报告 |
Source Code:lib\objagg.c |
Create Date:2022-07-27 08:22:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_type | opt_algo_type |
| 947 | objagg_hints等于分配内存并置零 |
| 948 | 如果非objagg_hints则返回:错误号 |
| 952 | refcount等于1 |
| 954 | 初始化链表头 |
| 957 | key_offset等于offsetof(structobjagg_hints_node, obj) |
| 959 | head_offset等于offsetof(structobjagg_hints_node, ht_node) |
| 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)则 |
| 973 | 转到:err_node_count_check |
| 976 | 返回:objagg_hints |
| 978 | err_node_count_check : |
| 979 | err_fillup_hints : |
| 981 | rhashtable_destroy( & node_ht) |
| 982 | err_rhashtable_init : |
| 983 | kfree(objagg_hints) |
| 984 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| test_hints_case |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |