Query: dev_getbyhwaddr
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DEV_GETBYHWADDR(9) Network device support DEV_GETBYHWADDR(9)NAMEdev_getbyhwaddr - find a device by its hardware addressSYNOPSISstruct net_device * dev_getbyhwaddr(struct net * net, unsigned short type, char * ha);ARGUMENTSnet the applicable net namespace type media type of device ha hardware addressDESCRIPTIONSearch for an interface by MAC address. Returns NULL if the device is not found or a pointer to the device. The caller must hold the rtnl semaphore. The returned device has not had its ref count increased and the caller must therefore be careful about lockingBUGSIf the API was consistent this would be __dev_get_by_hwaddrCOPYRIGHTKernel Hackers Manual 2.6. July 2010 DEV_GETBYHWADDR(9)