Function report |
Source Code:lib\rhashtable.c |
Create Date:2022-07-28 06:25:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hashtable_free_and_destroy - free elements and destroy hash table*@ht: the hash table to destroy*@free_fn: callback to release resources of element*@arg: pointer passed to free_fn* Stops an eventual async resize. If defined, invokes free_fn for each
Proto:void rhashtable_free_and_destroy(struct rhashtable *ht, void (*free_fn)(void *ptr, void *arg), void *arg)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct rhashtable * | ht | |
void (* | free_fn | |
void * | arg |
1130 | cancel_work_sync( & run_work) |
1132 | mutex_lock( & mutex) |
1133 | tbl = rht_dereference(tbl, ht) |
1134 | restart : |
1135 | If free_fn Then |
1139 | cond_resched() |
1140 | When Not rht_is_a_nulls(pos) cycle rhashtable_free_one(ht, pos, free_fn, arg) |
1151 | next_tbl = rht_dereference(future_tbl, ht) |
1152 | bucket_table_free(tbl) |
1153 | If next_tbl Then |
1157 | mutex_unlock( & mutex) |
Name | Describe |
---|---|
rhashtable_destroy | |
rhltable_free_and_destroy | hltable_free_and_destroy - free elements and destroy hash list table*@hlt: the hash list table to destroy*@free_fn: callback to release resources of element*@arg: pointer passed to free_fn* See documentation for rhashtable_free_and_destroy. |
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 |