1DEV_GETBYHWADDR(9)          Network device support          DEV_GETBYHWADDR(9)
2
3
4

NAME

6       dev_getbyhwaddr - find a device by its hardware address
7

SYNOPSIS

9       struct net_device * dev_getbyhwaddr(struct net * net,
10                                           unsigned short type, char * ha);
11

ARGUMENTS

13       net
14           the applicable net namespace
15
16       type
17           media type of device
18
19       ha
20           hardware address
21

DESCRIPTION

23       Search for an interface by MAC address. Returns NULL if the device is
24       not found or a pointer to the device. The caller must hold the rtnl
25       semaphore. The returned device has not had its ref count increased and
26       the caller must therefore be careful about locking
27

BUGS

29       If the API was consistent this would be __dev_get_by_hwaddr
30
32Kernel Hackers Manual 2.6.         June 2019                DEV_GETBYHWADDR(9)
Impressum