函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hashtable_lookup_insert_fast - lookup and insert object into hash table*@ht: hash table*@obj: pointer to hash head inside object*@params: hash table parameters* This lookup function may only be used for fixed key hash table (key_len* parameter set)

函数原型:static inline int rhashtable_lookup_insert_fast(struct rhashtable *ht, struct rhash_head *obj, const struct rhashtable_params params)

返回类型:int

参数:

类型参数名称
struct rhashtable *ht
struct rhash_head *obj
const struct rhashtable_paramsparams
907  key等于rht_obj(ht, obj)
910  BUG_ON(obj_hashfn)
912  ret等于Internal function, please use rhashtable_insert_fast() instead. This* function returns the existing element already in hashes in there is a clash,* otherwise it returns an error via ERR_PTR().
914  如果是错误则返回:错误
917  返回:如果ret恒等于NULL则0否则负EEXIST