函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rht_bucket_nested_insert

函数原型:struct rhash_lock_head **rht_bucket_nested_insert(struct rhashtable *ht, struct bucket_table *tbl, unsigned int hash)

返回类型:struct rhash_lock_head

参数:

类型参数名称
struct rhashtable *ht
struct bucket_table *tbl
unsigned inthash
1211  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 (*的长度)
1212  index等于hash按位与1左移nest位的值减1
1213  size等于size右移nest
1216  ntbl等于Dependency order vs. p above. (buckets[0])
1217  hash右移等于nest
1218  ntbl等于nested_table_alloc(ht, & table, size <= (1 << shift))
1221 ntblsize大于1左移shift循环
1222  index等于hash按位与1左移shift位的值减1
1223  size右移等于shift
1224  hash右移等于shift
1225  ntbl等于nested_table_alloc(ht, & table, size <= (1 << shift))
1229  如果非ntbl则返回:NULL
1232  返回:bucket