2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" 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.
5 .\" 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]
6 .TH DDI_FM_EREPORT_POST 9F "May 14, 2007"
8 ddi_fm_ereport_post \- post an FMA Protocol Error Report Event
12 #include <sys/ddifm.h>
14 \fBvoid\fR \fBddi_fm_ereport_post\fR(\fBdev_info_t\fR *\fIdip\fR, \fBchar\fR *\fIereport_class\fR,
15 \fBuint64_t\fR \fIena\fR, \fBint\fR *\fIsflag\fR, ... /* name-value pair args */);
21 Solaris DDI specific (Solaris DDI)
29 Pointer to the \fBdev_info\fR structure
35 \fB\fIereport_class\fR\fR
38 \fBFMA\fR Event Protocol error class
47 Error Numeric Association
56 Determines whether caller can sleep for memory or other event resources.
62 The \fBddi_fm_ereport_post()\fR function causes an encoded fault management
63 error report name-value pair list to be queued for delivery to the Fault
64 Manager daemon, \fBfmd\fR(1M). The \fIsflag\fR parameter indicates whether or
65 not the caller is willing to wait for system memory and event channel resources
69 The following \fIereport_class\fR strings are available for use by any leaf
74 \fB\fBdevice.inval_state\fR\fR
77 A leaf driver discovers that the device is in an invalid or inconsistent state.
78 For example, the driver might detect that receive or send ring descriptor
79 indices are corrupted. It might also find an invalid value in a register or a
80 driver-to-device protocol violation.
86 \fB\fBdevice.no_response\fR\fR
89 A leaf driver times out waiting for a response from the device. For example,
90 timeouts can occur when no confirmation is seen after resetting, enabling, or
91 disabling part of the device.
97 \fB\fBdevice.badint_limit\fR\fR
100 A leaf device sends too many consecutive interrupts with no work to do.
106 \fB\fBdevice.intern_corr\fR\fR
109 A leaf device reports to the driver that it has itself detected an internal
116 \fB\fBdevice.intern_uncorr\fR\fR
119 A leaf device reports to the driver that it has itself detected an internal
126 \fB\fBdevice.stall\fR\fR
129 A leaf driver determines that data transmission has stalled indefinitely.
134 The \fIena\fR indicates the Format 1 Error Numeric Association for this error
135 report. It might have already been initialized by another error-detecting
136 software module. For example, if \fBddi_fm_ereport_post()\fR is called from an
137 error handler callback function, the \fIfme_ena\fR field from the passed-in
138 \fBddi_fm_error\fR argument should be used. Otherwise it should be set to
139 \fB0\fR and will be initialized by \fBddi_fm_ereport_post()\fR.
142 The name-value pair \fIargs\fR variable argument list contains one or more
143 (names, type, value pointer) nvpair tuples for non-array \fBdata_type_t\fR
144 types or one or more (name, type, number of elements, value pointer) tuples for
145 \fBdata_type_t\fR array types. There is one mandatory tuple to describe the
146 \fBereport\fR version. This should contain the following values:
151 name - \fBFM_VERSION\fR
157 type - \fBDATA_TYPE_UINT8\fR
163 value - \fBFM_EREPORT_VERS0\fR
167 Additional nvpair tuples can describe error conditions for logging purposes,
168 but are not interpreted by the \fBI/O\fR framework or fault manager. The end of
169 the argument list is specified by \fINULL\fR.
173 The \fBddi_fm_ereport_post()\fR function can be called from user, kernel, or
174 high-level interrupt context.
178 See \fBattributes\fR(5) for descriptions of the following attributes:
186 ATTRIBUTE TYPE ATTRIBUTE VALUE
188 Interface Stability Committed
194 \fBfmd\fR(1M), \fBattributes\fR(5), \fBddi_fm_service_impact\fR(9F)