Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ipv4_neigh_lookup

Proto:static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key)

Type:struct neighbour

Parameter:

TypeParameterName
struct net_device *dev
u32key
41  _read_lock_bh() - mark the beginning of an RCU-bh critical section* This is equivalent of rcu_read_lock(), but also disables softirqs
42  n = __ipv4_neigh_lookup_noref(dev, key)
43  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
45  _read_unlock_bh - marks the end of a softirq-only RCU critical section* See rcu_read_lock_bh() for more information.
47  Return n