4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * The interfaces described below are private to FMA.
40 #include <sys/types.h>
41 #include <sys/processor.h>
42 #include <sys/fm/protocol.h>
44 #define BLIOC_INSERT (('B' << 8) | 0x01)
45 #define BLIOC_DELETE (('B' << 8) | 0x02)
47 typedef struct bl_req
{
48 caddr_t bl_fmri
; /* buffer containing packed FMRI */
49 size_t bl_fmrisz
; /* size of packed FMRI */
50 caddr_t bl_class
; /* event class reason for blacklist */
53 #if defined(_SYSCALL32)
54 typedef struct bl_req32
{
59 #endif /* _SYSCALL32 */
61 #define BL_FMRI_MAX_BUFSIZE 8192 /* maximum allowed packed FMRI size */
65 extern int blacklist(int, const char *, nvlist_t
*, const char *);
73 #endif /* _SYS_BL_H */