函数逻辑报告

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_table_alloc

函数原型:static union nested_table *nested_table_alloc(struct rhashtable *ht, union nested_table __rcu **prev, bool leaf)

返回类型:union nested_table

参数:

类型参数名称
struct rhashtable *ht
union nested_table __rcu **prev
boolleaf
120  ntbl等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().( * prev)
121  如果ntbl则返回:ntbl
124  ntbl等于分配内存并置零
126  如果ntblleaf
127 i小于PAGE_SIZEntbl[0]的长度循环INIT_RHT_NULLS_HEAD(bucket)
131  如果(cmpxchg((unionnested_table * * )prev, NULL, ntbl) == NULL)则返回:ntbl
134  kfree(ntbl)
135  返回:cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().( * prev)
调用者
名称描述
nested_bucket_table_alloc
rht_bucket_nested_insert