dev_getbyhwaddr(9)

dev_getbyhwaddr9

Find a device by its hardware address

Usage

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

Arguments

net

the applicable net namespace

type

media type of device

ha

hardware address

Overview

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 the rtnl semaphore. The returned device has not had its ref count increased and the caller must therefore be careful about locking

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

Bugs

If the API was consistent this would be __dev_get_by_hwaddr

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.