1net_netidtozonid(9F) Kernel Functions for Drivers net_netidtozonid(9F)
2
3
4
6 net_netidtozonid - map a netid_t structure identifier to a zoneid_t
7 structure
8
10 #include <sys/neti.h>
11
12 zoneid_t net_netidtozonid(const netid_t net);
13
14
16 Solaris DDI specific (Solaris DDI).
17
19 net valid netid_t structure that refers to an existing IP instance.
20
21
23 The net_netidtozonid() function maps the given netid_t (used to repre‐
24 sent an instance of IP) into the matching zoneid_t structure that is
25 associated with it.
26
28 The net_netidtozonid() function returns -1 if no mapping took place.
29 Otherwise, it returns the zoneid_t structure currently associated with
30 a netid_t structure. For shared stack zones, the zoneid_t structure for
31 the global zone is returned.
32
34 The net_netidtozonid() function may be called from user, kernel, or
35 interrupt context.
36
38 See attributes(5) for descriptions of the following attributes:
39
40
41
42
43 ┌─────────────────────────────┬─────────────────────────────┐
44 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │Availability │SUNWcsu │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Committed │
49 └─────────────────────────────┴─────────────────────────────┘
50
52 net_zoneidtonetid(9F), attributes(5)
53
54
55
56SunOS 5.11 1 May 2008 net_netidtozonid(9F)