113 NULL
114 };
115 #endif /* __amd64 */
116
117 #endif /* _sparc */
118
119 struct brand s10_brand = {
120 BRAND_VER_1,
121 "solaris10",
122 &s10_brops,
123 &s10_mops
124 };
125
126 static struct modlbrand modlbrand = {
127 &mod_brandops, /* type of module */
128 "Solaris 10 Brand", /* description of module */
129 &s10_brand /* driver ops */
130 };
131
132 static struct modlinkage modlinkage = {
133 MODREV_1, (void *)&modlbrand, NULL
134 };
135
136 void
137 s10_setbrand(proc_t *p)
138 {
139 brand_solaris_setbrand(p, &s10_brand);
140 }
141
142 /*ARGSUSED*/
143 int
144 s10_getattr(zone_t *zone, int attr, void *buf, size_t *bufsize)
145 {
146 ASSERT(zone->zone_brand == &s10_brand);
147 if (attr == S10_EMUL_BITMAP) {
148 if (buf == NULL || *bufsize != sizeof (s10_emul_bitmap_t))
149 return (EINVAL);
150 if (copyout(((s10_zone_data_t *)zone->zone_brand_data)->
151 emul_bitmap, buf, sizeof (s10_emul_bitmap_t)) != 0)
152 return (EFAULT);
153 return (0);
|
113 NULL
114 };
115 #endif /* __amd64 */
116
117 #endif /* _sparc */
118
119 struct brand s10_brand = {
120 BRAND_VER_1,
121 "solaris10",
122 &s10_brops,
123 &s10_mops
124 };
125
126 static struct modlbrand modlbrand = {
127 &mod_brandops, /* type of module */
128 "Solaris 10 Brand", /* description of module */
129 &s10_brand /* driver ops */
130 };
131
132 static struct modlinkage modlinkage = {
133 MODREV_1, { (void *)&modlbrand, NULL }
134 };
135
136 void
137 s10_setbrand(proc_t *p)
138 {
139 brand_solaris_setbrand(p, &s10_brand);
140 }
141
142 /*ARGSUSED*/
143 int
144 s10_getattr(zone_t *zone, int attr, void *buf, size_t *bufsize)
145 {
146 ASSERT(zone->zone_brand == &s10_brand);
147 if (attr == S10_EMUL_BITMAP) {
148 if (buf == NULL || *bufsize != sizeof (s10_emul_bitmap_t))
149 return (EINVAL);
150 if (copyout(((s10_zone_data_t *)zone->zone_brand_data)->
151 emul_bitmap, buf, sizeof (s10_emul_bitmap_t)) != 0)
152 return (EFAULT);
153 return (0);
|