Print this page
Bring back LX zones.


  28 #include <sys/cmn_err.h>
  29 #include <sys/brand.h>
  30 #include <sys/machbrand.h>
  31 #include <sys/modctl.h>
  32 #include <sys/rwlock.h>
  33 #include <sys/zone.h>
  34 #include <sys/pathname.h>
  35 
  36 #define SUPPORTED_BRAND_VERSION BRAND_VER_1
  37 
  38 #if defined(__sparcv9)
  39 /* sparcv9 uses system wide brand interposition hooks */
  40 static void brand_plat_interposition_enable(void);
  41 static void brand_plat_interposition_disable(void);
  42 
  43 struct brand_mach_ops native_mach_ops  = {
  44                 NULL, NULL
  45 };
  46 #else /* !__sparcv9 */
  47 struct brand_mach_ops native_mach_ops  = {
  48                 NULL, NULL, NULL, NULL
  49 };
  50 #endif /* !__sparcv9 */
  51 
  52 brand_t native_brand = {
  53                 BRAND_VER_1,
  54                 "native",
  55                 NULL,
  56                 &native_mach_ops
  57 };
  58 
  59 /*
  60  * Used to maintain a list of all the brands currently loaded into the
  61  * kernel.
  62  */
  63 struct brand_list {
  64         int                     bl_refcnt;
  65         struct brand_list       *bl_next;
  66         brand_t                 *bl_brand;
  67 };
  68 




  28 #include <sys/cmn_err.h>
  29 #include <sys/brand.h>
  30 #include <sys/machbrand.h>
  31 #include <sys/modctl.h>
  32 #include <sys/rwlock.h>
  33 #include <sys/zone.h>
  34 #include <sys/pathname.h>
  35 
  36 #define SUPPORTED_BRAND_VERSION BRAND_VER_1
  37 
  38 #if defined(__sparcv9)
  39 /* sparcv9 uses system wide brand interposition hooks */
  40 static void brand_plat_interposition_enable(void);
  41 static void brand_plat_interposition_disable(void);
  42 
  43 struct brand_mach_ops native_mach_ops  = {
  44                 NULL, NULL
  45 };
  46 #else /* !__sparcv9 */
  47 struct brand_mach_ops native_mach_ops  = {
  48                 NULL, NULL, NULL, NULL, NULL, NULL
  49 };
  50 #endif /* !__sparcv9 */
  51 
  52 brand_t native_brand = {
  53                 BRAND_VER_1,
  54                 "native",
  55                 NULL,
  56                 &native_mach_ops
  57 };
  58 
  59 /*
  60  * Used to maintain a list of all the brands currently loaded into the
  61  * kernel.
  62  */
  63 struct brand_list {
  64         int                     bl_refcnt;
  65         struct brand_list       *bl_next;
  66         brand_t                 *bl_brand;
  67 };
  68