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