Function report | 
Source Code:lib\rhashtable.c | 
Create Date:2022-07-28 06:25:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int rhashtable_init(struct rhashtable *ht, const struct rhashtable_params *params)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct rhashtable * | ht | |
| const struct rhashtable_params * | params | 
| 1014 | If Not key_len && Not obj_hashfn || obj_hashfn && Not obj_cmpfn Then Return -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 | Process spin lock initialization( & lock) | 
| 1021 | No 3D Now!( & p, params, size of params ) | 
| 1027 | max_elems = 1u << 31 | 
| 1029 | If max_size Then | 
| 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 | If Not hashfn Then | 
| 1045 | hashfn = rhashtable_jhash2 | 
| 1054 | tbl = bucket_table_alloc(ht, size, GFP_KERNEL) | 
| 1055 | If Value for the false possibility is greater at compile time(tbl == NULL) Then | 
| 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 | Return 0 | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |