函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:nested_bucket_table_alloc

函数原型:static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, size_t nbuckets, gfp_t gfp)

返回类型:struct bucket_table

参数:

类型参数名称
struct rhashtable *ht
size_tnbuckets
gfp_tgfp
142  shift等于PAGE_SHIFT determines the page size log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (*的长度)
146  如果nbuckets小于1左移shift加1位则返回:NULL
149  size等于tbl的长度加buckets[0]的长度
151  tbl等于分配内存并置零
152  如果非tbl则返回:NULL
155  如果非nested_table_alloc(ht, (unionnested_table__rcu * * )buckets, false)则
157  kfree(tbl)
158  返回:NULL
161  nest等于log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (nbuckets)减1的差取模shift加1
163  返回:tbl
调用者
名称描述
bucket_table_alloc