1DEV_GET_BY_NAME(9)          Network device support          DEV_GET_BY_NAME(9)
2
3
4

NAME

6       dev_get_by_name - find a device by its name
7

SYNOPSIS

9       struct net_device * dev_get_by_name(struct net * net,
10                                           const char * name);
11

ARGUMENTS

13       net
14           the applicable net namespace
15
16       name
17           name to find
18

DESCRIPTION

20       Find an interface by name. This can be called from any context and does
21       its own locking. The returned handle has the usage count incremented
22       and the caller must use dev_put to release it when it is no longer
23       needed.  NULL is returned if no matching device is found.
24
26Kernel Hackers Manual 2.6.         June 2019                DEV_GET_BY_NAME(9)
Impressum