1net_phylookup(9F) Kernel Functions for Drivers net_phylookup(9F)
2
3
4
6 net_phylookup - determine if a network interface name exists for a net‐
7 work protocol
8
10 #include <sys/neti.h>
11
12 phy_if_t net_phylookup(const net_data_t net, const char *name);
13
14
16 Solaris DDI specific (Solaris DDI).
17
19 net value returned from a successful call to net_proto‐
20 col_lookup(9F).
21
22
23 name name of the network interface to find.
24
25
27 The net_phylookup() function attempts to resolve the interface name
28 passed in with the network protocol.
29
30
31 When called successfully, the value returned represents a network
32 interface that exists, at the time of the call, within the scope of the
33 network interface. This value is only guaranteed to be unique for a
34 name within the scope of the network protocol.
35
37 The net_phylookup() function returns -1 if it is not supported by the
38 network protocol, and 0 if the named network interface does not exist
39 (or is otherwise unknown). Otherwise, it returns a value greater
40 than 0 representing a network interface that currently exists within
41 the scope of this network protocol.
42
44 The net_phylookup() function may be called from user, kernel, or
45 interrupt context.
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Availability │SUNWcsu │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Committed │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 net_getifname(9F), net_phygetnext(9F), net_protocol_lookup(9F),
63 attributes(5)
64
65
66
67SunOS 5.11 1 May 2008 net_phylookup(9F)