函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:insert_retry

函数原型:static int insert_retry(struct rhashtable *ht, struct test_obj *obj, const struct rhashtable_params params)

返回类型:int

参数:

类型参数名称
struct rhashtable *ht
struct test_obj *obj
const struct rhashtable_paramsparams
118  retries等于负1, enomem_retries等于0
120  循环
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  如果err恒等于负ENOMEMenomem_retry
125  enomem_retries自加
126  err等于负EBUSY
128 err恒等于负EBUSY循环
130  如果enomem_retries打印信息(" %u insertions retried after -ENOMEM\n", enomem_retries)
134  返回:如果err否则retries
调用者
名称描述
test_rhashtable
test_rhashtable_max
threadfunc