table of contents
other versions
- stretch 4.9.168-1
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. This can be called from any context and does its own locking. The returned handle has the usage count incremented and the caller must use dev_put to release it when it is no longer needed. NULL is returned if no matching device is found.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |