Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\neighbour.h Create Date:2022-07-28 06:08:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:___neigh_lookup_noref

Proto: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)

Type:struct neighbour

Parameter:

TypeParameterName
struct neigh_table *tbl
bool (*key_eq
__u32 (*hash
const void *pkey
struct net_device *dev
289  nht = fetch an RCU-bh-protected pointer for dereferencing(nht)
293  hash_val = hash(pkey, dev, hash_rnd) >> 32 - hash_shift
294  When n != NULL cycle
297  If dev == dev && key_eq(n, pkey) Then Return n
301  Return NULL