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

NAME

6       __dev_get_by_index - find a device by its ifindex
7

SYNOPSIS

9       struct net_device * __dev_get_by_index(struct net * net, int ifindex);
10

ARGUMENTS

12       net
13           the applicable net namespace
14
15       ifindex
16           index of device
17

DESCRIPTION

19       Search for an interface by index. Returns NULL if the device is not
20       found or a pointer to the device. The device has not had its reference
21       counter increased so the caller must be careful about locking. The
22       caller must hold either the RTNL semaphore or dev_base_lock.
23
25Kernel Hackers Manual 3.10         June 2019             __DEV_GET_BY_INDEX(9)
Impressum