函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__rht_ptr

函数原型:static inline struct rhash_head __rcu *__rht_ptr(struct rhash_lock_head *const *bkt)

返回类型:struct rhash_head

参数:

类型参数名称
struct rhash_lock_head *const *bkt
355  返回:(struct rhash_head __rcu * )((unsigned long) * bkt & ~BIT(0) ? : NULLS_MARKER() expects a hash value with the low* bits mostly likely to be significant, and it discards* the msb(bkt))
调用者
名称描述
rht_ptr_rcuWhere 'bkt' is a bucket and might be locked:* rht_ptr_rcu() dereferences that pointer and clears the lock bit.* rht_ptr() dereferences in a context where the bucket is locked.* rht_ptr_exclusive() dereferences in a context where exclusive
rht_ptr
rht_ptr_exclusive