函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rhashtable_try_insert

函数原型:static void *rhashtable_try_insert(struct rhashtable *ht, const void *key, struct rhash_head *obj)

返回类型:void

参数:

类型参数名称
struct rhashtable *ht
const void *key
struct rhash_head *obj
589  new_tbl等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(tbl)
591  循环
592  tbl等于new_tbl
593  hash等于rht_head_hashfn(ht, tbl, obj, p)
594  如果cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(future_tbl)则bkt等于rht_bucket_var(tbl, hash)
597  否则bkt等于rht_bucket_insert(ht, tbl, hash)
599  如果(bkt == NULL)则
601  data等于错误号
602  否则
608  如果错误不等于负EEXISTdata等于错误指示
611  rht_unlock(tbl, bkt)
613  当非是错误或空循环
615  如果错误恒等于负EAGAINdata等于错误号
619  返回:data
调用者
名称描述
rhashtable_insert_slow