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 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Standard definition for general topology lookup (See T11 FC-FS) 2N/A * @memo Construct a new deafult HBA Port 2N/A * @memo Compare two HBA ports for equality 2N/A * @return TRUE if both ports are the same 2N/A * @return FALSE if the ports are different 2N/A * @doc Comparison is based on Node WWN, Port WWN and path 2N/A * @memo Validate that the port is still present in the system 2N/A * @exception UnavailableException if the port is not present 2N/A * @doc If the port is still present on the system, the routine 2N/A * will return normally. If the port is not present 2N/A * an exception will be thrown. 2N/A * structure for di_devlink_walk 2N/A * @memo callback funtion for di_devlink_walk 2N/A * @postcondition Find matching /dev link for the given path argument. 2N/A * @param devlink element and callback function argument. 2N/A * @doc The input path is expected to not have "/devices". 2N/A * When path is specified, it doesn't have minor 2N/A * name. Therefore, the ../.. prefixes needs to be stripped. 2N/A // di_devlink_content contains /devices 2N/A // make it sure the device path has minor name 2N/A * @memo Convert /devices paths to /dev sym-link paths. 2N/A * @postcondition The mapping buffer OSDeviceName paths will be 2N/A * converted to short names. 2N/A * @param mappings The target mappings data to convert to 2N/A * is found, the long path is left as is. 2N/A * Note: The NumberOfEntries field MUST not be greater than the size 2N/A * of the array passed in. 2N/A // no need to check further, just return here. 2N/A // search link for minor node 2N/A }
// else leave OSDeviceName alone. 2N/A * Finds controller path for a give device path. 2N/A * Return vale: controller path. 2N/A tmp +=
"to find controller number.";
2N/A // support hba with up to UCHAR_MAX number of ports.