1DEV_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 returned has had a
21       reference added and the pointer is safe until the user calls dev_put to
22       indicate they have finished with it.
23
25Kernel Hackers Manual 2.6.         June 2019               DEV_GET_BY_INDEX(9)
Impressum