.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "DEV_GETBYHWADDR" "" "06 October 2005" "" ""
.SH NAME
dev_getbyhwaddr \- find a device by its hardware address
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct net_device * dev_getbyhwaddr (unsigned short \fItype\fB, char * \fIha\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItype\fB\fR
media type of device
.TP
\fB\fIha\fB\fR
hardware address
.SH "DESCRIPTION"
.PP
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
.SH "BUGS"
.PP
If the API was consistent this would be __dev_get_by_hwaddr