1DEV_GET_BY_FLAGS(9) Network device support DEV_GET_BY_FLAGS(9)
2
3
4
6 dev_get_by_flags - find any device with given flags
7
9 struct net_device * dev_get_by_flags(struct net * net,
10 unsigned short if_flags,
11 unsigned short mask);
12
14 net
15 the applicable net namespace
16
17 if_flags
18 IFF_* values
19
20 mask
21 bitmask of bits in if_flags to check
22
24 Search for any interface with the given flags. Returns NULL if a device
25 is not found or a pointer to the device. The device returned has had a
26 reference added and the pointer is safe until the user calls dev_put to
27 indicate they have finished with it.
28
30Kernel Hackers Manual 2.6. June 2019 DEV_GET_BY_FLAGS(9)