Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
1136  When i < size cycle
1139  cond_resched()
1151  next_tbl = rht_dereference(future_tbl, ht)
1152  bucket_table_free(tbl)
1153  If next_tbl Then
1154  tbl = next_tbl
1155  Go to restart
1157  mutex_unlock( & mutex)
Caller
NameDescribe
rhashtable_destroy
rhltable_free_and_destroyhltable_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.