table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
| __DEV_GET_BY_NAME(9) | Network device support | __DEV_GET_BY_NAME(9) |
NAME¶
__dev_get_by_name - find a device by its nameSYNOPSIS¶
struct
net_device * __dev_get_by_name(struct net * net,
const char * name);
ARGUMENTS¶
netthe applicable net namespace
name
name to find
DESCRIPTION¶
Find an interface by name. Must be called under RTNL semaphore or dev_base_lock. 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.COPYRIGHT¶
| February 2017 | Kernel Hackers Manual 3.16 |