Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ipv6_neigh_lookup

Proto:static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey)

Type:struct neighbour

Parameter:

TypeParameterName
struct net_device *dev
const void *pkey
397  _read_lock_bh() - mark the beginning of an RCU-bh critical section* This is equivalent of rcu_read_lock(), but also disables softirqs
398  n = __ipv6_neigh_lookup_noref(dev, pkey)
399  If n && Not _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then n = NULL
401  _read_unlock_bh - marks the end of a softirq-only RCU critical section* See rcu_read_lock_bh() for more information.
403  Return n