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_SERVICE_IMPACT 9F "Mar 13, 2016"
8 ddi_fm_service_impact \- report the impact of an error
12 #include <sys/ddifm.h>
14 \fBvoid\fR \fBddi_fm_service_impact\fR(\fBdev_info_t\fR *\fIdip\fR, \fBint\fR \fIimpact\fR);
19 Solaris DDI specific (Solaris DDI)
26 Pointer to the \fBdev_info\fR structure
40 The following service impact values are accepted by
41 \fBddi_fm_service_impact()\fR:
45 \fB\fBDDI_SERVICE_LOST\fR\fR
48 The service provided by the device is unavailable due to an error. The
49 operational state of the device will transition to \fBDEVI_DEVICE_DOWN\fR.
55 \fB\fBDDI_SERVICE_DEGRADED\fR\fR
58 The driver is unable to provide normal service, but it can provide a partial or
59 degraded level of service. The driver might have to make repeated attempts to
60 perform an operation before it succeeds, or it may be running at less than its
61 configured speed. A driver may use this value to indicate that an alternative
62 device should be used if available, but that it can continue operation if no
63 alternative exists. The operational state of the device will transition to
64 \fBDEVI_DEVICE_DEGRADED\fR.
70 \fB\fBDDI_SERVICE_RESTORED\fR\fR
73 The service provided by the device has been restored. The operational state of
74 the device will transition to its pre-error condition state and
75 \fBDEVI_DEVICE_DOWN\fR or \fBDEVI_DEVICE_DEGRADED\fR is removed.
81 \fB\fBDDI_SERVICE_UNAFFECTED\fR\fR
84 The service provided by the device was unaffected by the error.
89 The \fBddi_fm_service_impact()\fR function can be called from user, kernel, or
90 high-level interrupt context.
93 See \fBattributes\fR(5) for descriptions of the following attributes:
101 ATTRIBUTE TYPE ATTRIBUTE VALUE
103 Interface Stability Committed
108 \fBfmd\fR(1M), \fBattributes\fR(5), \fBddi_fm_ereport_post\fR(9F),
109 \fBpci_ereport_post\fR(9F)