/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_BL_H #define _SYS_BL_H #pragma ident "%Z%%M% %I% %E% SMI" /* * The interfaces described below are private to FMA. */ #ifdef __cplusplus extern "C" { #endif #include #include #include #define BLIOC_INSERT (('B' << 8) | 0x01) #define BLIOC_DELETE (('B' << 8) | 0x02) typedef struct bl_req { caddr_t bl_fmri; /* buffer containing packed FMRI */ size_t bl_fmrisz; /* size of packed FMRI */ caddr_t bl_class; /* event class reason for blacklist */ } bl_req_t; #if defined(_SYSCALL32) typedef struct bl_req32 { caddr32_t bl_fmri; size32_t bl_fmrisz; caddr32_t bl_class; } bl_req32_t; #endif /* _SYSCALL32 */ #define BL_FMRI_MAX_BUFSIZE 8192 /* maximum allowed packed FMRI size */ #ifdef _KERNEL extern int blacklist(int, const char *, nvlist_t *, const char *); #endif #ifdef __cplusplus } #endif #endif /* _SYS_BL_H */