函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rounded_hashtable_size

函数原型:static size_t rounded_hashtable_size(const struct rhashtable_params *params)

返回类型:size_t

参数:

类型参数名称
const struct rhashtable_params *params
951  如果nelem_hintretsize等于两数取大(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  否则retsize等于两数取大(HASH_DEFAULT_SIZE, (unsignedlong)min_size)
958  返回:retsize
调用者
名称描述
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