1948 zpool list should show more detailed pool information
[unleashed.git] / usr / src / uts / common / sys / bl.h
blobb556fb5190745e21ebead097dcae069cd3752b2e
1 /*
2 * CDDL HEADER START
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
7 * with the License.
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]
20 * CDDL HEADER END
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_BL_H
28 #define _SYS_BL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * The interfaces described below are private to FMA.
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
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 */
51 } bl_req_t;
53 #if defined(_SYSCALL32)
54 typedef struct bl_req32 {
55 caddr32_t bl_fmri;
56 size32_t bl_fmrisz;
57 caddr32_t bl_class;
58 } bl_req32_t;
59 #endif /* _SYSCALL32 */
61 #define BL_FMRI_MAX_BUFSIZE 8192 /* maximum allowed packed FMRI size */
63 #ifdef _KERNEL
65 extern int blacklist(int, const char *, nvlist_t *, const char *);
67 #endif
69 #ifdef __cplusplus
71 #endif
73 #endif /* _SYS_BL_H */