Sun_fcSendRLS.cc revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @memo Send ELS RLS command out on the wire
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @return HBA_STATUS_OK or error code
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @param handle The HBA to operate on
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @param hbaPortWWN Identifies the HBA port to use
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @param destWWN The target to send the command to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @param pRspBuffer The user-allocated response buffer
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * @param pRspBufferSize The size of user-allocated response buffer
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * issues a Read Link Error Status Block (RLS) Extended Link Service through
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * the specified HBA Nx_Port
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HBAPort *port = hba->getPort(wwnConversion(hbaPortWWN.wwn));
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte port->sendRLS(wwnConversion(destWWN.wwn), pRspBuffer,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte } catch (HBAException &e) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte } catch (...) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "Uncaught exception");