函数逻辑报告

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

函数名称:rhashtable_free_one

函数原型:static void rhashtable_free_one(struct rhashtable *ht, struct rhash_head *obj, void (*free_fn)(void *ptr, void *arg), void *arg)

返回类型:void

参数:

类型参数名称
struct rhashtable *ht
struct rhash_head *obj
void (*free_fn
void *arg
1095  如果非rhlist
1096  free_fn(rht_obj(ht, obj), arg)
1097  返回
1100  list等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(obj, structrhlist_head, rhead)
1101  循环
1102  obj等于rhead
1103  list等于rht_dereference(next, ht)
1104  free_fn(rht_obj(ht, obj), arg)
1105 list循环
调用者
名称描述
rhashtable_free_and_destroyhashtable_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