brand.h revision e9f7cbf00b5dbfafe45ffb00125fa0cc683595c6
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinextern "C" {
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * All Brands supported by this kernel must use BRAND_VER_1.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * sub-commands to brandsys.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * 1 - 128 are for common commands
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * 128+ are available for brand-specific commands.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Structure used by zoneadmd to communicate the name of a brand and the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * supporting brand module into the kernel.
typedef struct brand_elf_data {
typedef struct brand_proc_reg {
#ifdef _KERNEL
struct proc;
struct uarg;
struct brand_mach_ops;
struct intpdata;
struct execa;
struct brand_ops {
void (*b_exec)();
int b_nsig;
typedef struct brand {
int b_version;
char *b_name;
} brand_t;
extern void brand_init();
struct brand *, int);
struct brand *);
struct brand *, char *, char *, char *, char *, char *);
struct brand *);
struct brand *);
#if defined(_SYSCALL32)
typedef struct brand_elf_data32 {
typedef struct brand_common_reg32 {
typedef struct brand_proc_data {
#ifdef __cplusplus