Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hashtable_lookup_insert_key - search and insert object to hash table* with explicit key*@ht: hash table*@key: key*@obj: pointer to hash head inside object*@params: hash table parameters* Lookups may occur in parallel with hashtable mutations and resizing

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

Type:int

Parameter:

TypeParameterName
struct rhashtable *ht
const void *key
struct rhash_head *obj
const struct rhashtable_paramsparams
963  BUG_ON(!obj_hashfn || !key)
965  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().
966  If IS_ERR(ret) Then Return PTR_ERR(ret)
969  Return If ret == NULL Then 0 Else -EEXIST