Name

dev_getbyhwaddr_rcu — find a device by its hardware address

Synopsis

struct net_device * dev_getbyhwaddr_rcu (struct net * net,
 unsigned short type,
 const char * ha);
 

Arguments

struct net * net

the applicable net namespace

unsigned short type

media type of device

const char * 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 locking