Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-28 06:25:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rhashtable_free_one

Proto:static void rhashtable_free_one(struct rhashtable *ht, struct rhash_head *obj, void (*free_fn)(void *ptr, void *arg), void *arg)

Type:void

Parameter:

TypeParameterName
struct rhashtable *ht
struct rhash_head *obj
void (*free_fn
void *arg
1095  If Not rhlist Then
1096  free_fn(rht_obj(ht, obj), arg)
1097  Return
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  Do
1102  obj = rhead
1103  list = rht_dereference(next, ht)
1104  free_fn(rht_obj(ht, obj), arg)
1105  When list cycle
Caller
NameDescribe
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