Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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)

Proto:static inline int rhashtable_lookup_insert_fast(struct rhashtable *ht, struct rhash_head *obj, const struct rhashtable_params params)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(ret) Then Return PTR_ERR(ret)
917  Return If ret == NULL Then 0 Else -EEXIST