table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
| DEV_GETBYHWADDR_RCU(9) | Network device support | DEV_GETBYHWADDR_RCU(9) |
NAME¶
dev_getbyhwaddr_rcu - find a device by its hardware addressSYNOPSIS¶
struct net_device *
dev_getbyhwaddr_rcu(struct net * net,
unsigned short type,
const char * ha);
ARGUMENTS¶
netthe applicable net namespace
type
media type of device
ha
hardware address
DESCRIPTION¶
Search for an interface by MAC address. Returns NULL if the device is not found or a pointer to the device. The caller must hold RCU or RTNL. The returned device has not had its ref count increased and the caller must therefore be careful about lockingCOPYRIGHT¶
| May 2018 | Kernel Hackers Manual 4.9. |