函数逻辑报告 |
Source Code:lib\rhashtable.c |
Create Date:2022-07-27 07:22:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int rhashtable_init(struct rhashtable *ht, const struct rhashtable_params *params)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rhashtable * | ht | |
const struct rhashtable_params * | params |
1014 | 如果非key_len且非obj_hashfn或obj_hashfn且非obj_cmpfn则返回:负EINVAL |
1019 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & mutex) |
1020 | spin_lock_init( & lock) |
1027 | max_elems等于1u左移31位 |
1029 | 如果max_size则 |
1035 | min_size等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u16, min_size, HASH_MIN_SIZE) |
1037 | size等于rounded_hashtable_size( & p) |
1040 | 如果非hashfn则 |
1045 | hashfn等于rhashtable_jhash2 |
1054 | tbl等于bucket_table_alloc(ht, size, GFP_KERNEL) |
1055 | 如果此条件成立可能性小(为编译器优化)(tbl == NULL)则 |
1056 | size等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u16, min_size, HASH_MIN_SIZE) |
1057 | tbl等于bucket_table_alloc(ht, size, GFP_KERNEL | __GFP_NOFAIL) |
1060 | atomic_set( & nelems, 0) |
1064 | INIT_WORK( & run_work, rht_deferred_worker) |
1066 | 返回:0 |
名称 | 描述 |
---|---|
rhltable_init | hltable_init - initialize a new hash list table*@hlt: hash list table to be initialized*@params: configuration parameters* Initializes a new hash list table.* See documentation for rhashtable_init. |
test_rhashtable_max | |
test_rht_init | |
objagg_create | bjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller |
objagg_hints_get | 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 |
bpf_offload_dev_create | |
ipc_init_ids | pc_init_ids - initialise ipc identifiers*@ids: ipc identifier set* Set up the sequence range to use for the ipc identifier range (limited* below ipc_mni) then initialise the keys hashtable and ids idr. |
unpack_profile | pack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |