函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-27 07:22:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void rhashtable_free_and_destroy(struct rhashtable *ht, void (*free_fn)(void *ptr, void *arg), void *arg)

返回类型:void

参数:

类型参数名称
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  如果free_fn
1136 i小于size循环
1139  cond_resched()
1151  next_tbl等于rht_dereference(future_tbl, ht)
1152  bucket_table_free(tbl)
1153  如果next_tbl
1154  tbl等于next_tbl
1155  转到:restart
1157  mutex_unlock( & mutex)
调用者
名称描述
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.
aa_free_profileaa_free_profile - free a profile*@profile: the profile to free (MAYBE NULL)* Free a profile, its hats and null_profile