---
name: "dev_getbyhwaddr_rcu"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_getbyhwaddr_rcu"
---

# dev\_getbyhwaddr\_rcu(9)

find a device by its hardware address

## 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

*net*

the 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 locking

## COPYRIGHT
