usr/src/uts/common/sys/zone.h
changeset 1769 338500d67d4f
parent 1676 37f4a3e2bd99
child 2110 31cba59b38be
equal deleted inserted replaced
1768:50c4ebcf6011 1769:338500d67d4f
   213 
   213 
   214 #define	GLOBAL_ZONEUNIQID	0	/* uniqid of the global zone */
   214 #define	GLOBAL_ZONEUNIQID	0	/* uniqid of the global zone */
   215 
   215 
   216 /* zone_flags */
   216 /* zone_flags */
   217 #define	ZF_DESTROYED		0x1	/* ZSD destructor callbacks run */
   217 #define	ZF_DESTROYED		0x1	/* ZSD destructor callbacks run */
       
   218 #define	ZF_HASHED_LABEL		0x2	/* zone has a unique label */
       
   219 #define	ZF_IS_SCRATCH		0x4	/* scratch zone */
   218 
   220 
   219 struct pool;
   221 struct pool;
   220 
   222 
   221 /*
   223 /*
   222  * Structure to record list of ZFS datasets exported to a zone.
   224  * Structure to record list of ZFS datasets exported to a zone.
   332 extern void zone_task_hold(zone_t *);
   334 extern void zone_task_hold(zone_t *);
   333 extern void zone_task_rele(zone_t *);
   335 extern void zone_task_rele(zone_t *);
   334 extern zone_t *zone_find_by_id(zoneid_t);
   336 extern zone_t *zone_find_by_id(zoneid_t);
   335 extern zone_t *zone_find_by_label(const ts_label_t *);
   337 extern zone_t *zone_find_by_label(const ts_label_t *);
   336 extern zone_t *zone_find_by_name(char *);
   338 extern zone_t *zone_find_by_name(char *);
       
   339 extern zone_t *zone_find_by_any_path(const char *, boolean_t);
   337 extern zone_t *zone_find_by_path(const char *);
   340 extern zone_t *zone_find_by_path(const char *);
   338 extern zone_t *zone_find_by_any_path(const char *, boolean_t);
       
   339 extern zoneid_t getzoneid(void);
   341 extern zoneid_t getzoneid(void);
   340 
   342 
   341 /*
   343 /*
   342  * Zone-specific data (ZSD) APIs
   344  * Zone-specific data (ZSD) APIs
   343  */
   345  */