函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__ipv4_neigh_lookup

函数原型:static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key)

返回类型:struct neighbour

参数:

类型参数名称
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  如果n且非_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 then = NULL
45  标记rcu锁结束的软中断
47  返回:n