table of contents
other versions
- stretch 4.9.168-1
DEV_GET_BY_NAME_RCU(9) | Network device support | DEV_GET_BY_NAME_RCU(9) |
NAME¶
dev_get_by_name_rcu - find a device by its nameSYNOPSIS¶
struct net_device * dev_get_by_name_rcu(struct net * net, const char * name);
ARGUMENTS¶
netthe applicable net namespace
name
name to find
DESCRIPTION¶
Find an interface by name. If the name is found a pointer to the device is returned. If the name is not found then NULL is returned. The reference counters are not incremented so the caller must be careful with locks. The caller must hold RCU lock.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |