函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hashtable_shrink - Shrink hash table while allowing concurrent lookups*@ht: the hash table to shrink* This function shrinks the hash table to fit, i

函数原型:static int rhashtable_shrink(struct rhashtable *ht)

返回类型:int

参数:

类型参数名称
struct rhashtable *ht>mutex.
380  old_tbl等于rht_dereference(tbl, >mutex.)
381  nelems等于atomic_read( & nelems)
382  size等于0
384  如果nelemssize等于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(nelems * 3 / 2)
386  如果size小于min_sizesize等于min_size
389  如果size小于等于size则返回:0
392  如果rht_dereference(future_tbl, >mutex.)则返回:负EEXIST
395  返回:rhashtable_rehash_alloc(>mutex., old_tbl, size)
调用者
名称描述
rht_deferred_worker