1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved. 24 */ 25 26 /* 27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31 /* 32 * 33 * MODULE: dapl_ep_create.c 34 * 35 * PURPOSE: Endpoint management 36 * Description: Interfaces in this file are completely described in 37 * the kDAPL 1.1 API, Chapter 6, section 5 38 * 39 * $Id: dapl_ep_create.c,v 1.20 2003/06/30 16:49:36 sjs2 Exp $ 40 */ 41 42 #include "dapl.h" 43 #include "dapl_ia_util.h" 44 #include "dapl_ep_util.h" 45 #include "dapl_adapter_util.h" 46 47 48 /* 49 * dapl_ep_create 50 * 51 * uDAPL Version 1.1, 6.5.3 52 * 53 * Create an instance of an Endpoint that is provided to the 54 * consumer at ep_handle. 55 * 56 * Input: 57 * ia_handle 58 * pz_handle 59 * recv_evd_handle (recv DTOs) 60 * request_evd_handle (xmit DTOs) 61 * connect_evd_handle 62 * ep_attrs 63 * 64 * Output: 65 * ep_handle 66 * 67 * Returns: 68 * DAT_SUCCESS 69 * DAT_INSUFFICIENT_RESOURCES 70 * DAT_INVALID_PARAMETER 71 * DAT_INVALID_ATTRIBUTE 72 * DAT_MODEL_NOT_SUPPORTED 73 */ 74 DAT_RETURN 75 dapl_ep_create( 76 IN DAT_IA_HANDLE ia_handle, 77 IN DAT_PZ_HANDLE pz_handle, 78 IN DAT_EVD_HANDLE recv_evd_handle, 79 IN DAT_EVD_HANDLE request_evd_handle, 80 IN DAT_EVD_HANDLE connect_evd_handle, 81 IN const DAT_EP_ATTR *ep_attr, 82 OUT DAT_EP_HANDLE *ep_handle) 83 { 84 return (dapl_ep_create_common(ia_handle, pz_handle, recv_evd_handle, 85 request_evd_handle, connect_evd_handle, DAT_HANDLE_NULL, 86 ep_attr, ep_handle)); 87 } 88 89 90 /* 91 * Local variables: 92 * c-indent-level: 4 93 * c-basic-offset: 4 94 * tab-width: 8 95 * End: 96 */ 97