Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:nested_table_alloc

Proto:static union nested_table *nested_table_alloc(struct rhashtable *ht, union nested_table __rcu **prev, bool leaf)

Type:union nested_table

Parameter:

TypeParameterName
struct rhashtable *ht
union nested_table __rcu **prev
boolleaf
120  ntbl = fetch RCU-protected pointer for dereferencing( * prev)
121  If ntbl Then Return ntbl
124  ntbl = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
126  If ntbl && leaf Then
127  When i < PAGE_SIZE / size of ntbl[0] cycle INIT_RHT_NULLS_HEAD(bucket)
131  If (cmpxchg((unionnested_table * * )prev, NULL, ntbl) == NULL) Then Return ntbl
134  kfree(ntbl)
135  Return fetch RCU-protected pointer for dereferencing( * prev)
Caller
NameDescribe
nested_bucket_table_alloc
rht_bucket_nested_insert