Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rounded_hashtable_size

Proto:static size_t rounded_hashtable_size(const struct rhashtable_params *params)

Type:size_t

Parameter:

TypeParameterName
const struct rhashtable_params *params
951  If nelem_hint Then retsize = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(undup_pow_of_two - round the given value up to nearest power of two*@n: parameter* round the given value up to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(nelem_hint * 4 / 3), (unsignedlong)min_size)
954  Else retsize = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(HASH_DEFAULT_SIZE, (unsignedlong)min_size)
958  Return retsize
Caller
NameDescribe
rhashtable_inithashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters