1DEV_GET_BY_INDEX_RCU(9) Network device support DEV_GET_BY_INDEX_RCU(9)
2
3
4
6 dev_get_by_index_rcu - find a device by its ifindex
7
9 struct net_device * dev_get_by_index_rcu(struct net * net,
10 int ifindex);
11
13 net
14 the applicable net namespace
15
16 ifindex
17 index of device
18
20 Search for an interface by index. Returns NULL if the device is not
21 found or a pointer to the device. The device has not had its reference
22 counter increased so the caller must be careful about locking. The
23 caller must hold RCU lock.
24
26Kernel Hackers Manual 3.10 June 2019 DEV_GET_BY_INDEX_RCU(9)