函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:___neigh_lookup_noref

函数原型:static inline struct neighbour *___neigh_lookup_noref(struct neigh_table *tbl, bool (*key_eq)(const struct neighbour *n, const void *pkey), __u32 (*hash)(const void *pkey, const struct net_device *dev, __u32 *hash_rnd), const void *pkey, struct net_device *dev)

返回类型:struct neighbour

参数:

类型参数名称
struct neigh_table *tbl
bool (*key_eq
__u32 (*hash
const void *pkey
struct net_device *dev
289  nht等于cu_dereference_bh() - fetch an RCU-bh-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* Makes rcu_dereference_check() do the dirty work.(nht)
293  hash_val等于hash(pkey, dev, hash_rnd)右移32减hash_shift
294 n != NULL循环
297  如果dev恒等于devkey_eq(n, pkey)则返回:n
301  返回:NULL
调用者
名称描述
__neigh_lookup_noref
__ipv6_neigh_lookup_noref
__ipv6_neigh_lookup_noref_stub