Home
last modified time | relevance | path

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

123456789

/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs_stats.c47 nfsstat_zone_init_common(zoneid_t zoneid, const char *module, int vers, in nfsstat_zone_init_common() argument
58 KSTAT_FLAG_VIRTUAL | KSTAT_FLAG_WRITABLE, zoneid)) != NULL) { in nfsstat_zone_init_common()
70 nfsstat_zone_fini_common(zoneid_t zoneid, const char *module, int vers, in nfsstat_zone_fini_common() argument
73 kstat_delete_byname_zone(module, vers, name, zoneid); in nfsstat_zone_fini_common()
96 nfsstat_zone_init_server(zoneid_t zoneid, kstat_named_t *svstatp[]) in nfsstat_zone_init_server() argument
110 svstatp[vers] = nfsstat_zone_init_common(zoneid, "nfs", vers, in nfsstat_zone_init_server()
112 if (zoneid == GLOBAL_ZONEID) in nfsstat_zone_init_server()
118 nfsstat_zone_fini_server(zoneid_t zoneid, kstat_named_t **svstatp) in nfsstat_zone_fini_server() argument
122 if (zoneid == GLOBAL_ZONEID) in nfsstat_zone_fini_server()
124 nfsstat_zone_fini_common(zoneid, "nfs", vers, "nfs_server"); in nfsstat_zone_fini_server()
[all …]
H A Dnfs4_client_debug.c874 zoneid_t zoneid; in queue_print_event() local
877 zoneid = mi->mi_zone->zone_id; in queue_print_event()
881 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
894 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
901 zcmn_err(zoneid, CE_NOTE, in queue_print_event()
911 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
921 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
929 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
938 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
946 zcmn_err(zoneid, CE_NOTE, "![NFS4][Server: %s][Mntpt: %s]" in queue_print_event()
[all …]
/titanic_41/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
75 return (syscall(SYS_zone, ZONE_SHUTDOWN, zoneid)); in zone_shutdown()
79 zone_destroy(zoneid_t zoneid) in zone_destroy() argument
81 return (syscall(SYS_zone, ZONE_DESTROY, zoneid)); in zone_destroy()
85 zone_getattr(zoneid_t zoneid, int attr, void *valp, size_t size) in zone_getattr() argument
90 error = __systemcall(&rval, SYS_zone, ZONE_GETATTR, zoneid, in zone_getattr()
98 zone_setattr(zoneid_t zoneid, int attr, void *valp, size_t size) in zone_setattr() argument
100 return (syscall(SYS_zone, ZONE_SETATTR, zoneid, attr, valp, size)); in zone_setattr()
[all …]
/titanic_41/usr/src/uts/common/rpc/
H A Dmt_rpcinit.c58 rpcstat_zone_init_common(zoneid_t zoneid, const char *module, const char *name, in rpcstat_zone_init_common() argument
77 KSTAT_FLAG_VIRTUAL | KSTAT_FLAG_WRITABLE, zoneid)) != NULL) { in rpcstat_zone_init_common()
85 rpcstat_zone_fini_common(zoneid_t zoneid, const char *module, const char *name) in rpcstat_zone_fini_common() argument
87 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
[all …]
/titanic_41/usr/src/lib/libtsol/common/
H A Dzone.c41 zoneid_t zoneid; in getzonelabelbyname() local
43 if ((zoneid = getzoneidbyname(zone)) == -1) { in getzonelabelbyname()
47 return (getzonelabelbyid(zoneid)); in getzonelabelbyname()
54 getzonelabelbyid(zoneid_t zoneid) in getzonelabelbyid() argument
61 if (zone_getattr(zoneid, ZONE_ATTR_SLBL, slabel, in getzonelabelbyid()
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
153 if (zone_getattr(zoneid, ZONE_ATTR_ROOT, zoneroot, in getzonerootbyid()
[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()
H A Dgetpathbylabel.c231 getnfspathbyautofs(struct mntlist *mlist, zoneid_t zoneid, in getnfspathbyautofs() argument
247 if (zone_getattr(zoneid, ZONE_ATTR_NAME, zonename, in getnfspathbyautofs()
353 getglobalpath(const char *path, zoneid_t zoneid, struct mntlist *mlist, in getglobalpath() argument
362 if (zoneid != GLOBAL_ZONEID) { in getglobalpath()
365 if ((prefix = getzonerootbyid(zoneid)) == NULL) { in getglobalpath()
395 if (zoneid > GLOBAL_ZONEID) { in getglobalpath()
401 if (getnfspathbyautofs(mlist, zoneid, m, in getglobalpath()
426 if ((zoneid > GLOBAL_ZONEID) && in getglobalpath()
445 if (zone_getattr(zoneid, ZONE_ATTR_NAME, in getglobalpath()
470 zoneid_t zoneid; in getpathbylabel() local
[all …]
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip_srcid.c110 zoneid_t zoneid, ip_stack_t *);
119 ip_srcid_insert(const in6_addr_t *addr, zoneid_t zoneid, ip_stack_t *ipst) in ip_srcid_insert() argument
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()
159 ip_srcid_remove(const in6_addr_t *addr, zoneid_t zoneid, ip_stack_t *ipst) in ip_srcid_remove() argument
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()
[all …]
H A Dip6_ire.c71 zoneid_t zoneid, const ts_label_t *tsl, int flags,
82 zoneid_t zoneid, uint_t flags, tsol_gc_t *gc, ip_stack_t *ipst) in ire_init_v6() argument
127 error = ire_init_common(ire, type, ill, zoneid, flags, IPV6_VERSION, in ire_init_v6()
182 const in6_addr_t *v6gateway, ushort_t type, ill_t *ill, zoneid_t zoneid, in ire_create_v6() argument
198 type, ill, zoneid, flags, gc, ipst); in ire_create_v6()
227 ire_lookup_multi_ill_v6(const in6_addr_t *group, zoneid_t zoneid, in ire_lookup_multi_ill_v6() argument
233 ire = ire_route_recursive_v6(group, 0, NULL, zoneid, NULL, in ire_lookup_multi_ill_v6()
687 const in6_addr_t *gateway, int type, const ill_t *ill, zoneid_t zoneid, in ire_match_args_v6() argument
711 if (zoneid != ALL_ZONES && zoneid != ire->ire_zoneid && in ire_match_args_v6()
773 zoneid, ipst)) { in ire_match_args_v6()
[all …]
/titanic_41/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_door.c92 dlmgmt_getlink_by_dev(char *devname, zoneid_t zoneid) in dlmgmt_getlink_by_dev() argument
97 if (link_is_visible(linkp, zoneid) && in dlmgmt_getlink_by_dev()
141 dlmgmt_upcall_create(void *argp, void *retp, size_t *sz, zoneid_t zoneid, in dlmgmt_upcall_create() argument
177 dlmgmt_getlink_by_dev(create->ld_devname, zoneid)) != NULL) { in dlmgmt_upcall_create()
214 zoneid, flags, &linkp)) == EEXIST) { in dlmgmt_upcall_create()
227 err = dlmgmt_generate_name("net", link, MAXLINKNAMELEN, zoneid); in dlmgmt_upcall_create()
231 err = dlmgmt_create_common(link, class, media, zoneid, flags, in dlmgmt_upcall_create()
281 dlmgmt_upcall_update(void *argp, void *retp, size_t *sz, zoneid_t zoneid, in dlmgmt_upcall_update() argument
299 if ((linkp = dlmgmt_getlink_by_dev(update->ld_devname, zoneid)) == in dlmgmt_upcall_update()
357 dlmgmt_upcall_destroy(void *argp, void *retp, size_t *sz, zoneid_t zoneid, in dlmgmt_upcall_destroy() argument
[all …]
H A Ddlmgmt_util.c370 zoneid_t zoneid = ALL_ZONES; in link_activate() local
372 if (zone_check_datalink(&zoneid, linkp->ll_linkid) == 0) { in link_activate()
377 if (zoneid != linkp->ll_zoneid) { in link_activate()
378 if (link_by_name(linkp->ll_link, zoneid) != NULL) { in link_activate()
386 linkp->ll_zoneid = zoneid; in link_activate()
406 link_is_visible(dlmgmt_link_t *linkp, zoneid_t zoneid) in link_is_visible() argument
408 return (linkp->ll_zoneid == zoneid || in link_is_visible()
409 (zoneid == GLOBAL_ZONEID && linkp->ll_onloan)); in link_is_visible()
413 link_by_id(datalink_id_t linkid, zoneid_t zoneid) in link_by_id() argument
420 if (zoneid != GLOBAL_ZONEID && linkp->ll_zoneid != zoneid) in link_by_id()
[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()
/titanic_41/usr/src/uts/common/os/
H A Dpid.c325 prfind_zone(pid_t pid, zoneid_t zoneid) in prfind_zone() argument
337 if (zoneid == ALL_ZONES || p->p_zone->zone_id == zoneid) in prfind_zone()
352 zoneid_t zoneid; in prfind() local
355 zoneid = ALL_ZONES; in prfind()
357 zoneid = getzoneid(); in prfind()
358 return (prfind_zone(pid, zoneid)); in prfind()
362 pgfind_zone(pid_t pgid, zoneid_t zoneid) in pgfind_zone() argument
374 if (zoneid == ALL_ZONES || pgid == 0 || p == NULL || in pgfind_zone()
375 p->p_zone->zone_id == zoneid) in pgfind_zone()
388 zoneid_t zoneid; in pgfind() local
[all …]
H A Dprintf.c75 zoneid_t zoneid, dev_info_t *dip) in cprintf() argument
91 ASSERT(zoneid == GLOBAL_ZONEID || !on_intr); in cprintf()
105 zoneid = getzoneid(); in cprintf()
124 (zoneid == GLOBAL_ZONEID && log_global.lz_active == 0)) { in cprintf()
164 log_sendmsg(mp, zoneid); in cprintf()
182 vzprintf(zoneid_t zoneid, const char *fmt, va_list adx) in vzprintf() argument
185 zoneid, NULL); in vzprintf()
208 zprintf(zoneid_t zoneid, const char *fmt, ...) in zprintf() argument
214 zoneid, NULL); in zprintf()
250 vzdcmn_err(zoneid_t zoneid, void *site, int ce, const char *fmt, va_list adx, in vzdcmn_err() argument
[all …]
H A Dnetstack.c104 static void *netstack_zone_create(zoneid_t zoneid);
105 static void netstack_zone_shutdown(zoneid_t zoneid, void *arg);
106 static void netstack_zone_destroy(zoneid_t zoneid, void *arg);
108 static void netstack_shared_zone_add(zoneid_t zoneid);
109 static void netstack_shared_zone_remove(zoneid_t zoneid);
312 netstack_zone_create(zoneid_t zoneid) in netstack_zone_create() argument
322 zone = zone_find_by_id_nolock(zoneid); in netstack_zone_create()
326 stackid = zoneid; in netstack_zone_create()
353 netstack_shared_zone_add(zoneid); in netstack_zone_create()
361 ns->netstack_stackid = zoneid; in netstack_zone_create()
[all …]
H A Dkstat_fr.c110 zoneid_t zoneid; member
243 kstat_zone_find(kstat_t *k, zoneid_t zoneid) in kstat_zone_find() argument
250 if (zoneid == ALL_ZONES || kz->zoneid == ALL_ZONES) in kstat_zone_find()
252 if (zoneid == kz->zoneid) in kstat_zone_find()
259 kstat_zone_remove(kstat_t *k, zoneid_t zoneid) in kstat_zone_remove() argument
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()
288 kstat_zone_add(kstat_t *k, zoneid_t zoneid) in kstat_zone_add() argument
297 kz->zoneid = zoneid; in kstat_zone_add()
[all …]
H A Dcore.c86 zoneid_t zoneid) in core_log() argument
96 zcmn_err(zoneid, CE_NOTE, "core_log: %s[%d] %s", fn, pid, why); in core_log()
98 zcmn_err(zoneid, CE_NOTE, "core_log: %s[%d] %s: %s", fn, pid, in core_log()
101 zcmn_err(zoneid, CE_NOTE, "core_log: %s[%d] %s, errno=%d: %s", in core_log()
309 zoneid_t zoneid = crgetzoneid(newcr); in set_cred() local
312 upcount_dec(olduid, zoneid); in set_cred()
313 upcount_inc(newuid, zoneid); in set_cred()
574 zoneid_t zoneid; in dump_one_core() local
580 zoneid = (core_type == CORE_ZONE ? getzoneid() : GLOBAL_ZONEID); in dump_one_core()
588 zoneid); in dump_one_core()
[all …]
/titanic_41/usr/src/cmd/ipcrm/
H A Dipcrm.c57 #define IPC_KEYMATCH(perm, zoneid, key) \ argument
58 ((perm).ipcx_key == (key) && (perm).ipcx_zoneid == (zoneid))
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()
257 if (IPC_KEYMATCH(sds.semx_perm, zoneid, k)) in semgetkey()
278 if (mds.shmx_perm.ipcx_zoneid != zoneid) { in shmgetid()
318 if (IPC_KEYMATCH(mds.shmx_perm, zoneid, k)) in shmgetkey()
330 zoneid_t zoneid; in getzone() local
[all …]
/titanic_41/usr/src/cmd/ptools/ptree/
H A Dptree.c62 zoneid_t zoneid; member
85 static zoneid_t zoneid; variable
130 zoneid = getzone(optarg); in main()
236 p->zoneid = info.pr_zoneid; in main()
339 p->zoneid == zoneid)) in main()
443 pp->zoneid = ct_status_get_zoneid(hdl); in ctsort()
459 if (zflag && p->zoneid != pp->zoneid && in ctsort()
460 (zoneid == p->zoneid || zoneid == pp->zoneid)) in ctsort()
461 pp->zoneid = p->zoneid; in ctsort()
516 if (!zflag || p->zoneid == zoneid) in markprocs()
[all …]
/titanic_41/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.c327 zoneid_t zoneid; in ipnet_register_netihook() local
338 zoneid = netstackid_to_zoneid(ips->ips_netstack->netstack_stackid); in ipnet_register_netihook()
339 if ((netid = net_zoneidtonetid(zoneid)) == -1) in ipnet_register_netihook()
348 " in zone %d: %d", zoneid, ret); in ipnet_register_netihook()
357 " in zone %d: %d", zoneid, ret); in ipnet_register_netihook()
510 zoneid_t zoneid = crgetzoneid(crp); in ipnet_open() local
516 if (is_system_labeled() && zoneid != GLOBAL_ZONEID) in ipnet_open()
536 ipnet->ipnet_zoneid = zoneid; in ipnet_open()
553 !ipnetif_in_zone(ipnet->ipnet_if, zoneid, ips)) { in ipnet_open()
1384 zoneid_t zoneid; in ipnet_add_ifaddr() local
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/uts/common/inet/ilb/
H A Dilb.c366 in_port_t port, zoneid_t zoneid, uint32_t len, boolean_t *busy) in ilb_rule_hash() argument
390 rule->ir_zoneid != zoneid) { in ilb_rule_hash()
517 ilb_rule_add(ilb_stack_t *ilbs, zoneid_t zoneid, const ilb_rule_cmd_t *cmd) in ilb_rule_add() argument
627 if (ilb_match_rule(ilbs, zoneid, cmd->name, cmd->ip_ver, cmd->proto, in ilb_rule_add()
665 rule->ir_zoneid = zoneid; in ilb_rule_add()
815 ilb_rule_del(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name) in ilb_rule_del() argument
822 if ((tmp_rule = ilb_find_rule_locked(ilbs, zoneid, name, in ilb_rule_del()
925 ilb_find_rule_locked(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, in ilb_find_rule_locked() argument
934 if (tmp_rule->ir_zoneid != zoneid) in ilb_find_rule_locked()
955 ilb_find_rule(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, in ilb_find_rule() argument
[all …]

123456789