.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "__DEV_GET_BY_INDEX" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME __dev_get_by_index \- find a device by its ifindex .SH "SYNOPSIS" .ad l .hy 0 .HP 44 struct\ net_device\ *\ \fB__dev_get_by_index\ \fR\ (int\ \fIifindex\fR); .ad .hy .SH "ARGUMENTS" .TP \fIifindex\fR index of device .SH "DESCRIPTION" .PP Search for an interface by index\&. Returns \fBNULL\fR if the device is not found or a pointer to the device\&. The device has not had its reference counter increased so the caller must be careful about locking\&. The caller must hold either the RTNL semaphore or \fIdev_base_lock\fR\&.