1DEV_GET_BY_NAME_RCU(9) Network device support DEV_GET_BY_NAME_RCU(9)
2
3
4
6 dev_get_by_name_rcu - find a device by its name
7
9 struct net_device * dev_get_by_name_rcu(struct net * net,
10 const char * name);
11
13 net
14 the applicable net namespace
15
16 name
17 name to find
18
20 Find an interface by name. If the name is found a pointer to the device
21 is returned. If the name is not found then NULL is returned. The
22 reference counters are not incremented so the caller must be careful
23 with locks. The caller must hold RCU lock.
24
26Kernel Hackers Manual 3.10 June 2019 DEV_GET_BY_NAME_RCU(9)