函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__ipv6_neigh_lookup

函数原型:static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey)

返回类型:struct neighbour

参数:

类型参数名称
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  如果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
401  标记rcu锁结束的软中断
403  返回:n