Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rht_bucket_nested_insert

Proto:struct rhash_lock_head **rht_bucket_nested_insert(struct rhashtable *ht, struct bucket_table *tbl, unsigned int hash)

Type:struct rhash_lock_head

Parameter:

TypeParameterName
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 ( size of * )
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  When ntbl && size > 1 << shift cycle
1222  index = hash & (1 << shift) - 1
1223  size >>= shift
1224  hash >>= shift
1225  ntbl = nested_table_alloc(ht, & table, size <= (1 << shift))
1229  If Not ntbl Then Return NULL
1232  Return bucket