2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * scsi_rcm_offline() 2N/A * Offline SCSI resource consumers. 2N/A * Online SCSI resource consumers that were previously offlined. 2N/A * Remove SCSI resource consumers after their kernel removal. 2N/A * scsi_rcm_suspend() 2N/A * Suspend SCSI resource consumers before a bus quiesce. 2N/A * attempt a suspension on a list of resources 2N/A * Resume SCSI resource consumers after a bus has been unquiesced. 2N/A * resume the resource list. 2N/A * Contains common initialization code for entering a scsi_rcm_xx() 2N/A /* Get a handle for the RCM operations */ 2N/A * scsi_rcm_info_table 2N/A * Takes an opaque rcm_info_t pointer and a character pointer, and appends 2N/A * the rcm_info_t data in the form of a table to the given character pointer. 2N/A /* Protect against invalid arguments */ 2N/A /* Set localized table header strings */ 2N/A /* A first pass, to size up the RCM information */ 2N/A /* If nothing was sized up above, stop early */ 2N/A /* Adjust column widths for column headings */ 2N/A * Compute the total line width of each line, 2N/A * accounting for intercolumn spacing. 2N/A /* Allocate space for the table */ 2N/A /* zero fill for the strcat() call below */ 2N/A /* Place a table header into the string */ 2N/A /* The resource header */ 2N/A /* The information header */ 2N/A /* Underline the headers */ 2N/A /* Construct the format string */ 2N/A /* Add the tuples to the table string */