函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_etherdev_addr - Tell if given Ethernet address belongs to the device.*@dev: Pointer to a device structure*@addr: Pointer to a six-byte array containing the Ethernet address* Compare passed address with all addresses of the device. Return true if the

函数原型:static inline bool is_etherdev_addr(const struct net_device *dev, const u8 addr[8])

返回类型:bool

参数:

类型参数名称
const struct net_device *dev
const u8addr
473  bool res = false
475  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
476  dev_addrs walker. Should be used only for read access. Call with* rcu_read_lock held.(dev, ha)
477  res等于her_addr_equal_64bits - Compare two Ethernet addresses*@addr1: Pointer to an array of 8 bytes*@addr2: Pointer to an other array of 8 bytes* Compare two Ethernet addresses, returns true if equal, false otherwise
478  如果res退出
481  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
482  返回:res