517 list_t zone_dl_list;
518 netstack_t *zone_netstack;
519 struct cpucap *zone_cpucap; /* CPU caps data */
520 /*
521 * Solaris Auditing per-zone audit context
522 */
523 struct au_kcontext *zone_audit_kctxt;
524 /*
525 * For private use by mntfs.
526 */
527 struct mntelem *zone_mntfs_db;
528 krwlock_t zone_mntfs_db_lock;
529
530 struct klpd_reg *zone_pfexecd;
531
532 char *zone_fs_allowed;
533 rctl_qty_t zone_nprocs; /* number of processes in the zone */
534 rctl_qty_t zone_nprocs_ctl; /* current limit protected by */
535 /* zone_rctls->rcs_lock */
536 kstat_t *zone_nprocs_kstat;
537 } zone_t;
538
539 /*
540 * Special value of zone_psetid to indicate that pools are disabled.
541 */
542 #define ZONE_PS_INVAL PS_MYID
543
544
545 extern zone_t zone0;
546 extern zone_t *global_zone;
547 extern uint_t maxzones;
548 extern rctl_hndl_t rc_zone_nlwps;
549 extern rctl_hndl_t rc_zone_nprocs;
550
551 extern long zone(int, void *, void *, void *, void *);
552 extern void zone_zsd_init(void);
553 extern void zone_init(void);
554 extern void zone_hold(zone_t *);
555 extern void zone_rele(zone_t *);
556 extern void zone_init_ref(zone_ref_t *);
|
517 list_t zone_dl_list;
518 netstack_t *zone_netstack;
519 struct cpucap *zone_cpucap; /* CPU caps data */
520 /*
521 * Solaris Auditing per-zone audit context
522 */
523 struct au_kcontext *zone_audit_kctxt;
524 /*
525 * For private use by mntfs.
526 */
527 struct mntelem *zone_mntfs_db;
528 krwlock_t zone_mntfs_db_lock;
529
530 struct klpd_reg *zone_pfexecd;
531
532 char *zone_fs_allowed;
533 rctl_qty_t zone_nprocs; /* number of processes in the zone */
534 rctl_qty_t zone_nprocs_ctl; /* current limit protected by */
535 /* zone_rctls->rcs_lock */
536 kstat_t *zone_nprocs_kstat;
537
538 /*
539 * DTrace-private per-zone state
540 */
541 int zone_dtrace_getf; /* # of unprivileged getf()s */
542 } zone_t;
543
544 /*
545 * Special value of zone_psetid to indicate that pools are disabled.
546 */
547 #define ZONE_PS_INVAL PS_MYID
548
549
550 extern zone_t zone0;
551 extern zone_t *global_zone;
552 extern uint_t maxzones;
553 extern rctl_hndl_t rc_zone_nlwps;
554 extern rctl_hndl_t rc_zone_nprocs;
555
556 extern long zone(int, void *, void *, void *, void *);
557 extern void zone_zsd_init(void);
558 extern void zone_init(void);
559 extern void zone_hold(zone_t *);
560 extern void zone_rele(zone_t *);
561 extern void zone_init_ref(zone_ref_t *);
|