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 (c) 2002-2003, Network Appliance, Inc. All rights reserved. 2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * PURPOSE: implements connection callbacks 2N/A * Description: Accepts asynchronous callbacks from the Communications Manager 2N/A * for EVDs that have been specified as the connection_evd. 2N/A * dapl_evd_connection_callback 2N/A * Connection callback function for ACTIVE connection requests; callbacks 2N/A * generated by the Connection Manager in response to issuing a 2N/A "--> dapl_evd_connection_callback: ctxt: %p event: %x" 2N/A * Determine the type of handle passed back to us in the context 2N/A * and sort out key parameters. 2N/A * Active side of the connection, context is an EP and 2N/A * PSP is irrelevant. 2N/A * If we don't have an EP at this point we are very screwed 2N/A * If someone pulled the plug on the connection, just 2N/A /* copy in the private data */ 2N/A * If we received any premature DTO completions and 2N/A * post them to the recv evd now. 2N/A * there is a race here - if events arrive after we change 2N/A * the ep state to connected and before we process premature 2N/A * EP is now fully disconnected; initiate any post processing 2N/A * to reset the underlying QP and get the EP ready for 2N/A * another connection 2N/A /* DTO error caused this */ 2N/A /* If the EP has been freed, the evd_ptr will be NULL */ 2N/A * If the user has done an ep_free of the EP, we have been 2N/A * waiting for the disconnect event; just clean it up now. 2N/A "dapl_evd_connection_callback () returns\n");