Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:insert_retry

Proto:static int insert_retry(struct rhashtable *ht, struct test_obj *obj, const struct rhashtable_params params)

Type:int

Parameter:

TypeParameterName
struct rhashtable *ht
struct test_obj *obj
const struct rhashtable_paramsparams
118  retries = -1 , enomem_retries = 0
120  Do
121  retries++
122  cond_resched()
123  err = hashtable_insert_fast - insert object into hash table*@ht: hash table*@obj: pointer to hash head inside object*@params: hash table parameters* Will take the per bucket bitlock to protect against mutual mutations* on the same bucket
124  If err == -ENOMEM && enomem_retry Then
125  enomem_retries++
126  err = -EBUSY
128  When err == -EBUSY cycle
130  If enomem_retries Then pr_info(" %u insertions retried after -ENOMEM\n", enomem_retries)
134  Return If err Else retries
Caller
NameDescribe
test_rhashtable
test_rhashtable_max
threadfunc