Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline bool is_etherdev_addr(const struct net_device *dev, const u8 addr[8])

Type:bool

Parameter:

TypeParameterName
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  If res Then Break
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  Return res