Home
last modified time | relevance | path

Searched refs:zoneid (Results 1 – 25 of 212) sorted by relevance

123456789

/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_stats.c73 kstat_delete_byname_zone(module, vers, name, zoneid); in nfsstat_zone_fini_common()
108 nfsstat_zone_fini_common(zoneid, "nfs", vers, "nfs_server"); in nfsstat_zone_fini_server()
147 nfsstat_zone_fini_common(zoneid, "nfs", 0, "rfsreqcnt_v2"); in nfsstat_zone_fini_rfsreq_v2()
251 nfsstat_zone_fini_common(zoneid, "nfs", 0, "rfsreqcnt_v3"); in nfsstat_zone_fini_rfsreq_v3()
372 nfsstat_zone_fini_common(zoneid, "nfs", 0, "rfsreqcnt_v4"); in nfsstat_zone_fini_rfsreq_v4()
450 nfsstat_zone_init(zoneid_t zoneid) in nfsstat_zone_init() argument
479 nfsstat_zone_fini(zoneid_t zoneid, void *data) in nfsstat_zone_fini() argument
505 zoneid_t zoneid = ng->nfs_zoneid; in rfs_stat_zone_init() local
508 nfsstat_zone_init_server(zoneid, ng->svstat); in rfs_stat_zone_init()
532 zoneid_t zoneid = ng->nfs_zoneid; in rfs_stat_zone_fini() local
[all …]
H A Dnfs4_client_debug.c874 zoneid_t zoneid; in queue_print_event() local
894 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
901 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
959 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
964 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
995 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
1003 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
1057 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
1068 zcmn_err(zoneid, CE_WARN, in queue_print_event()
1090 zoneid_t zoneid; in queue_print_fact() local
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dzone.c67 zone_boot(zoneid_t zoneid) in zone_boot() argument
69 return (syscall(SYS_zone, ZONE_BOOT, zoneid)); in zone_boot()
73 zone_shutdown(zoneid_t zoneid) in zone_shutdown() argument
79 zone_destroy(zoneid_t zoneid) in zone_destroy() argument
104 zone_enter(zoneid_t zoneid) in zone_enter() argument
126 zoneid_t zoneid; in zone_get_id() local
165 zoneid = (zoneid_t)strtol(str, &cp, 0); in zone_get_id()
167 getzonenamebyid(zoneid, NULL, 0) != -1) { in zone_get_id()
168 *zip = zoneid; in zone_get_id()
173 if ((zoneid = getzoneidbyname(str)) != -1) { in zone_get_id()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dmt_rpcinit.c87 kstat_delete_byname_zone(module, 0, name, zoneid); in rpcstat_zone_fini_common()
91 mt_kstat_zone_init(zoneid_t zoneid) in mt_kstat_zone_init() argument
97 clnt_clts_stats_init(zoneid, &rpcstat->rpc_clts_client); in mt_kstat_zone_init()
98 svc_clts_stats_init(zoneid, &rpcstat->rpc_clts_server); in mt_kstat_zone_init()
100 clnt_cots_stats_init(zoneid, &rpcstat->rpc_cots_client); in mt_kstat_zone_init()
101 svc_cots_stats_init(zoneid, &rpcstat->rpc_cots_server); in mt_kstat_zone_init()
110 mt_kstat_zone_fini(zoneid_t zoneid, void *data) in mt_kstat_zone_fini() argument
114 clnt_cots_stats_fini(zoneid, &rpcstat->rpc_cots_client); in mt_kstat_zone_fini()
115 svc_cots_stats_fini(zoneid, &rpcstat->rpc_cots_server); in mt_kstat_zone_fini()
117 clnt_clts_stats_fini(zoneid, &rpcstat->rpc_clts_client); in mt_kstat_zone_fini()
[all …]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dzone.c41 zoneid_t zoneid; in getzonelabelbyname() local
47 return (getzonelabelbyid(zoneid)); in getzonelabelbyname()
54 getzonelabelbyid(zoneid_t zoneid) in getzonelabelbyid() argument
80 zoneid_t zoneid; in getzoneidbylabel() local
134 zoneid = zids[i]; in getzoneidbylabel()
136 return (zoneid); in getzoneidbylabel()
149 getzonerootbyid(zoneid_t zoneid) in getzonerootbyid() argument
168 zoneid_t zoneid; in getzonerootbyname() local
172 return (getzonerootbyid(zoneid)); in getzonerootbyname()
182 zoneid_t zoneid; in getzonerootbylabel() local
[all …]
H A Dgetpathbylabel.c228 getnfspathbyautofs(struct mntlist *mlist, zoneid_t zoneid, in getnfspathbyautofs() argument
244 if (zone_getattr(zoneid, ZONE_ATTR_NAME, zonename, in getnfspathbyautofs()
359 if (zoneid != GLOBAL_ZONEID) { in getglobalpath()
362 if ((prefix = getzonerootbyid(zoneid)) == NULL) { in getglobalpath()
392 if (zoneid > GLOBAL_ZONEID) { in getglobalpath()
398 if (getnfspathbyautofs(mlist, zoneid, m, in getglobalpath()
423 if ((zoneid > GLOBAL_ZONEID) && in getglobalpath()
442 if (zone_getattr(zoneid, ZONE_ATTR_NAME, in getglobalpath()
467 zoneid_t zoneid; in getpathbylabel() local
485 if ((zoneid = getzoneidbylabel(sl)) == -1) in getpathbylabel()
[all …]
H A Dgetplabel.c42 zoneid_t zoneid; in getplabel() local
44 zoneid = (int)getzoneid(); in getplabel()
45 if (zoneid == GLOBAL_ZONEID) { in getplabel()
50 sl = getzonelabelbyid(zoneid); in getplabel()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_srcid.c110 zoneid_t zoneid, ip_stack_t *);
126 inet_ntop(AF_INET6, addr, abuf, sizeof (abuf)), zoneid)); in ip_srcid_insert()
130 smpp = srcid_lookup_addr(addr, zoneid, ipst); in ip_srcid_insert()
148 (*smpp)->sm_zoneid = zoneid; in ip_srcid_insert()
167 inet_ntop(AF_INET6, addr, abuf, sizeof (abuf)), zoneid)); in ip_srcid_remove()
171 smpp = srcid_lookup_addr(addr, zoneid, ipst); in ip_srcid_remove()
199 ip_srcid_find_addr(const in6_addr_t *addr, zoneid_t zoneid, in ip_srcid_find_addr() argument
208 smpp = srcid_lookup_addr(addr, zoneid, ipst); in ip_srcid_find_addr()
237 ip_srcid_find_id(uint_t id, in6_addr_t *addr, zoneid_t zoneid, in ip_srcid_find_id() argument
248 if (smp == NULL || (smp->sm_zoneid != zoneid && zoneid != ALL_ZONES)) { in ip_srcid_find_id()
[all …]
H A Dip6_ire.c71 zoneid_t zoneid, const ts_label_t *tsl, int flags,
198 type, ill, zoneid, flags, gc, ipst); in ire_create_v6()
710 if (zoneid != ALL_ZONES && zoneid != ire->ire_zoneid && in ire_match_args_v6()
772 zoneid, ipst)) { in ire_match_args_v6()
796 (tipif->ipif_zoneid == zoneid || in ire_match_args_v6()
916 zoneid_t zoneid, const ts_label_t *tsl, int flags, in ire_ftable_lookup_v6() argument
969 margs.ift_zoneid = zoneid; in ire_ftable_lookup_v6()
1018 zoneid_t zoneid, const ts_label_t *tsl, int flags, in ire_ftable_lookup_impl_v6() argument
1048 ill, zoneid, tsl, flags)) in ire_ftable_lookup_impl_v6()
1086 zoneid, tsl, flags)) in ire_ftable_lookup_impl_v6()
[all …]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_door.c97 if (link_is_visible(linkp, zoneid) && in dlmgmt_getlink_by_dev()
552 MAXLINKNAMELEN, zoneid); in dlmgmt_createid()
1011 linkp = link_by_id(linkid, zoneid); in dlmgmt_openconf()
1079 linkp = link_by_id(linkid, zoneid); in dlmgmt_getconfsnapshot()
1145 zoneid != dlconfp->ld_zoneid) { in dlmgmt_getattr()
1162 zoneid_t zoneid, ucred_t *cred) in dlmgmt_upcall_linkprop_init() argument
1206 if (zoneid != GLOBAL_ZONEID) { in dlmgmt_setzoneid()
1235 if (zoneid != GLOBAL_ZONEID && in dlmgmt_setzoneid()
1286 if (zoneid != GLOBAL_ZONEID) { in dlmgmt_zoneboot()
1314 if (zoneid != GLOBAL_ZONEID) { in dlmgmt_zonehalt()
[all …]
H A Ddlmgmt_util.c370 zoneid_t zoneid = ALL_ZONES; in link_activate() local
377 if (zoneid != linkp->ll_zoneid) { in link_activate()
386 linkp->ll_zoneid = zoneid; in link_activate()
420 if (zoneid != GLOBAL_ZONEID && linkp->ll_zoneid != zoneid) in link_by_id()
431 link.ll_zoneid = zoneid; in link_by_name()
462 linkp->ll_zoneid = zoneid; in dlmgmt_create_common()
587 dlconfp->ld_zoneid = zoneid; in dlconf_create()
609 zoneid_t zoneid) in dlmgmt_generate_name() argument
619 if (lpp->lp_zoneid == zoneid && in dlmgmt_generate_name()
638 lpp->lp_zoneid = zoneid; in dlmgmt_generate_name()
[all …]
H A Ddlmgmt_main.c129 dlmgmt_door_attach(zoneid_t zoneid, char *rootdir) in dlmgmt_door_attach() argument
160 } else if (zoneid == GLOBAL_ZONEID) { in dlmgmt_door_attach()
176 dlmgmt_zone_init(zoneid_t zoneid) in dlmgmt_zone_init() argument
182 if (zoneid == GLOBAL_ZONEID) { in dlmgmt_zone_init()
184 } else if (zone_getattr(zoneid, ZONE_ATTR_ROOT, rootdir, in dlmgmt_zone_init()
206 if ((err = dlmgmt_db_init(zoneid)) != 0) in dlmgmt_zone_init()
208 return (dlmgmt_door_attach(zoneid, rootdir)); in dlmgmt_zone_init()
370 zoneid_t zoneid = getzoneid(); in dlmgmt_drop_privileges() local
391 if (zoneid == GLOBAL_ZONEID) { in dlmgmt_drop_privileges()
/illumos-gate/usr/src/uts/common/os/
H A Dpid.c339 if (zoneid == ALL_ZONES || p->p_zone->zone_id == zoneid) in prfind_zone()
354 zoneid_t zoneid; in prfind() local
357 zoneid = ALL_ZONES; in prfind()
359 zoneid = getzoneid(); in prfind()
390 zoneid_t zoneid; in pgfind() local
393 zoneid = ALL_ZONES; in pgfind()
395 zoneid = getzoneid(); in pgfind()
487 zoneid_t zoneid; in sprlock() local
490 zoneid = ALL_ZONES; in sprlock()
492 zoneid = getzoneid(); in sprlock()
[all …]
H A Dprintf.c76 zoneid_t zoneid, dev_info_t *dip) in cprintf() argument
92 ASSERT(zoneid == GLOBAL_ZONEID || !on_intr); in cprintf()
106 zoneid = getzoneid(); in cprintf()
165 log_sendmsg(mp, zoneid); in cprintf()
183 vzprintf(zoneid_t zoneid, const char *fmt, va_list adx) in vzprintf() argument
186 zoneid, NULL); in vzprintf()
209 zprintf(zoneid_t zoneid, const char *fmt, ...) in zprintf() argument
215 zoneid, NULL); in zprintf()
259 zoneid, dip); in vzdcmn_err()
266 vzdcmn_err(zoneid, caller(), ce, fmt, adx, NULL); in vzcmn_err()
[all …]
H A Dkstat_fr.c250 if (zoneid == ALL_ZONES || kz->zoneid == ALL_ZONES) in kstat_zone_find()
252 if (zoneid == kz->zoneid) in kstat_zone_find()
265 if (zoneid == e->e_zone.zoneid) { in kstat_zone_remove()
268 e->e_zone.zoneid = kz->zoneid; in kstat_zone_remove()
273 if (kz->next->zoneid == zoneid) { in kstat_zone_remove()
297 kz->zoneid = zoneid; in kstat_zone_add()
322 if (kz1->zoneid == kz2->zoneid) in kstat_zone_compare()
326 return (e1->e_zone.zoneid < e2->e_zone.zoneid ? -1 : 1); in kstat_zone_compare()
412 e.e_zone.zoneid = zoneid; in kstat_hold_bykid()
1137 zoneid_t zoneid = ((ekstat_t *)ksp)->e_zone.zoneid; in kstat_install() local
[all …]
H A Dnetstack.c339 stackid = zoneid; in netstack_zone_create()
366 netstack_shared_zone_add(zoneid); in netstack_zone_create()
374 ns->netstack_stackid = zoneid; in netstack_zone_create()
943 zoneid_t zoneid = crgetzoneid(cr); in netstack_find_by_cred() local
946 if (zoneid == (zoneid_t)-1) in netstack_find_by_cred()
947 zoneid = GLOBAL_ZONEID; in netstack_find_by_cred()
972 zone = zone_find_by_id(zoneid); in netstack_find_by_zoneid()
1220 zoneid_t zoneid = ks_netstackid; in kstat_create_netstack() local
1243 sz->sz_zoneid = zoneid; in netstack_shared_zone_add()
1359 if (sz->sz_zoneid == zoneid) { in netstack_find_shared_zoneid()
[all …]
H A Dcore.c87 zoneid_t zoneid) in core_log() argument
310 zoneid_t zoneid = crgetzoneid(newcr); in set_cred() local
313 upcount_dec(olduid, zoneid); in set_cred()
314 upcount_inc(newuid, zoneid); in set_cred()
575 zoneid_t zoneid; in dump_one_core() local
589 zoneid); in dump_one_core()
598 refstr_value(rp), zoneid); in dump_one_core()
600 core_log(cg, 0, "core dumped", fp, zoneid); in dump_one_core()
605 fp, zoneid); in dump_one_core()
609 fp, zoneid); in dump_one_core()
[all …]
/illumos-gate/usr/src/uts/intel/os/
H A Dsmt.c254 return (CS_ZONE(sibstate) == zoneid); in sibling_compatible()
262 zoneid_t zoneid = getzoneid(); in smt_acquire() local
295 zoneid); in smt_acquire()
320 zoneid_t zoneid = getzoneid(); in smt_release() local
370 CS_ZONE(sibstate) == zoneid) in smt_kick()
452 zoneid_t zoneid = getzoneid(); in smt_mark() local
478 if (smt_need_kick(smt, zoneid)) in smt_mark()
479 smt_kick(smt, zoneid); in smt_mark()
484 ASSERT3U(zoneid, ==, GLOBAL_ZONEID); in smt_mark()
496 if (smt_need_kick(smt, zoneid)) in smt_mark()
[all …]
/illumos-gate/usr/src/cmd/ipcrm/
H A Dipcrm.c57 #define IPC_KEYMATCH(perm, zoneid, key) \ argument
64 static zoneid_t zoneid; variable
146 if (qds.msgx_perm.ipcx_zoneid != zoneid) { in msggetid()
185 if (IPC_KEYMATCH(qds.msgx_perm, zoneid, k)) in msggetkey()
211 if (sds.semx_perm.ipcx_zoneid != zoneid) { in semgetid()
278 if (mds.shmx_perm.ipcx_zoneid != zoneid) { in shmgetid()
330 zoneid_t zoneid; in getzone() local
332 if (zone_get_id(arg, &zoneid) != 0) { in getzone()
337 return (zoneid); in getzone()
364 zoneid = getzoneid(); in main()
[all …]
/illumos-gate/usr/src/uts/common/inet/ipnet/
H A Dipnet_bpf.c74 ipnet_bpf_open(const char *name, uintptr_t *mhandlep, zoneid_t zoneid) in ipnet_bpf_open() argument
76 if (zoneid == ALL_ZONES) in ipnet_bpf_open()
77 zoneid = GLOBAL_ZONEID; in ipnet_bpf_open()
78 return (ipnet_open_byname(name, (ipnetif_t **)mhandlep, zoneid)); in ipnet_bpf_open()
189 ipnet_bpf_getlinkid(const char *name, datalink_id_t *idp, zoneid_t zoneid) in ipnet_bpf_getlinkid() argument
195 VERIFY((ips = ipnet_find_by_zoneid(zoneid)) != NULL); in ipnet_bpf_getlinkid()
199 error = ipnet_get_linkid_byname(name, &index, zoneid); in ipnet_bpf_getlinkid()
H A Dipnet.c332 zoneid_t zoneid; in ipnet_register_netihook() local
541 ipnet->ipnet_zoneid = zoneid; in ipnet_open()
1391 zoneid_t zoneid; in ipnet_add_ifaddr() local
1403 ifaddr->ifa_zone = zoneid; in ipnet_add_ifaddr()
1430 if (zoneid == ALL_ZONES) in ipnet_add_ifaddr()
1431 zoneid = GLOBAL_ZONEID; in ipnet_add_ifaddr()
1729 zoneid_t zoneid; in ipnet_stack_fini() local
1769 if (ifa->ifa_zone == zoneid) in ipnet_addrs_in_zone()
2063 if (netstackid_to_zoneid(zoneid_to_netstackid(zoneid)) != zoneid) { in ipnet_open_byname()
2124 if (netstackid_to_zoneid(zoneid_to_netstackid(zoneid)) != zoneid) { in ipnet_get_linkid_byname()
[all …]
/illumos-gate/usr/src/cmd/ptools/ptree/
H A Dptree.c68 zoneid_t zoneid; member
95 static zoneid_t zoneid; variable
191 zoneid = getzone(optarg); in main()
478 if (zflag && p->zoneid != pp->zoneid && in ctsort()
479 (zoneid == p->zoneid || zoneid == pp->zoneid)) in ctsort()
480 pp->zoneid = p->zoneid; in ctsort()
544 if (zflag && p->zoneid != zoneid) in match_proc()
616 zoneid_t zoneid; in getzone() local
618 if (zone_get_id(arg, &zoneid) != 0) in getzone()
621 return (zoneid); in getzone()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsigtimedwait.c51 zoneid_t zoneid = getzoneid(); in copyout_siginfo() local
54 if (SI_FROMUSER(ksip) && zoneid != GLOBAL_ZONEID && in copyout_siginfo()
55 zoneid != ksip->si_zoneid) { in copyout_siginfo()
60 sani_sip.si_zoneid = zoneid; in copyout_siginfo()
73 if (SI_FROMUSER(ksip) && zoneid != GLOBAL_ZONEID && in copyout_siginfo()
74 zoneid != ksip->si_zoneid) { in copyout_siginfo()
78 si32.si_zoneid = zoneid; in copyout_siginfo()
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_set.c70 Psetzoneid(struct ps_prochandle *Pr, zoneid_t zoneid) in Psetzoneid() argument
74 long zoneid; in Psetzoneid() member
80 ctl.zoneid = zoneid; in Psetzoneid()
/illumos-gate/usr/src/cmd/zonename/
H A Dzonename.c47 zoneid_t zoneid; in main() local
65 zoneid = getzoneid(); in main()
70 if (zone_getattr(zoneid, ZONE_ATTR_FLAGS, &flags, in main()
82 if (getzonenamebyid(zoneid, zonename, sizeof (zonename)) < 0) { in main()

123456789