dev_get_by_name_rcu9
Find a device by its name
Usage
struct net_device * dev_get_by_name_rcu(struct net * net, const char * name);
Arguments
net
the applicable net namespace
name
name to find
Overview
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.
Releases
3 releases since Debian 7 (Wheezy); the text changed 2 times.