dapl_ep_create.c revision 9517:b4839b0aa7a4
167754Smsmith/*
267754Smsmith * CDDL HEADER START
367754Smsmith *
467754Smsmith * The contents of this file are subject to the terms of the
567754Smsmith * Common Development and Distribution License (the "License").
667754Smsmith * You may not use this file except in compliance with the License.
7217365Sjkim *
8217365Sjkim * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970243Smsmith * or http://www.opensolaris.org/os/licensing.
1067754Smsmith * See the License for the specific language governing permissions
11217365Sjkim * and limitations under the License.
12217365Sjkim *
13217365Sjkim * When distributing Covered Code, include this CDDL HEADER in each
14217365Sjkim * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15217365Sjkim * If applicable, add the following below this CDDL HEADER, with the
16217365Sjkim * fields enclosed by brackets "[]" replaced with your own identifying
17217365Sjkim * information: Portions Copyright [yyyy] [name of copyright owner]
18217365Sjkim *
19217365Sjkim * CDDL HEADER END
20217365Sjkim */
21217365Sjkim
22217365Sjkim/*
23217365Sjkim * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
24217365Sjkim */
2567754Smsmith
26217365Sjkim/*
27217365Sjkim * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
28217365Sjkim * Use is subject to license terms.
2967754Smsmith */
30217365Sjkim
31217365Sjkim/*
32217365Sjkim *
33217365Sjkim * MODULE: dapl_ep_create.c
34217365Sjkim *
35217365Sjkim * PURPOSE: Endpoint management
36217365Sjkim * Description: Interfaces in this file are completely described in
37217365Sjkim *		the kDAPL 1.1 API, Chapter 6, section 5
38217365Sjkim *
39217365Sjkim * $Id: dapl_ep_create.c,v 1.20 2003/06/30 16:49:36 sjs2 Exp $
40217365Sjkim */
41217365Sjkim
42217365Sjkim#include "dapl.h"
4367754Smsmith#include "dapl_ia_util.h"
4467754Smsmith#include "dapl_ep_util.h"
4567754Smsmith#include "dapl_adapter_util.h"
4667754Smsmith
47193341Sjkim
48193341Sjkim/*
49193341Sjkim * dapl_ep_create
50193341Sjkim *
51193341Sjkim * uDAPL Version 1.1, 6.5.3
5267754Smsmith *
5377424Smsmith * Create an instance of an Endpoint that is provided to the
5491116Smsmith * consumer at ep_handle.
5567754Smsmith *
56151937Sjkim * Input:
5767754Smsmith *	ia_handle
58151937Sjkim *	pz_handle
59151937Sjkim *	recv_evd_handle (recv DTOs)
60151937Sjkim *	request_evd_handle (xmit DTOs)
61151937Sjkim *	connect_evd_handle
62151937Sjkim *	ep_attrs
63151937Sjkim *
64151937Sjkim * Output:
65151937Sjkim *	ep_handle
66151937Sjkim *
67151937Sjkim * Returns:
68151937Sjkim *	DAT_SUCCESS
69151937Sjkim *	DAT_INSUFFICIENT_RESOURCES
70151937Sjkim *	DAT_INVALID_PARAMETER
71151937Sjkim *	DAT_INVALID_ATTRIBUTE
72167802Sjkim *	DAT_MODEL_NOT_SUPPORTED
73167802Sjkim */
74167802SjkimDAT_RETURN
75167802Sjkimdapl_ep_create(
76167802Sjkim	IN	DAT_IA_HANDLE		ia_handle,
77167802Sjkim	IN	DAT_PZ_HANDLE		pz_handle,
78151937Sjkim	IN	DAT_EVD_HANDLE		recv_evd_handle,
79167802Sjkim	IN	DAT_EVD_HANDLE		request_evd_handle,
8067754Smsmith	IN	DAT_EVD_HANDLE		connect_evd_handle,
8167754Smsmith	IN	const DAT_EP_ATTR	*ep_attr,
8267754Smsmith	OUT	DAT_EP_HANDLE		*ep_handle)
8367754Smsmith{
8467754Smsmith	return (dapl_ep_create_common(ia_handle, pz_handle, recv_evd_handle,
8567754Smsmith	    request_evd_handle, connect_evd_handle, DAT_HANDLE_NULL,
8667754Smsmith	    ep_attr, ep_handle));
8767754Smsmith}
8867754Smsmith
8967754Smsmith
9067754Smsmith/*
9167754Smsmith * Local variables:
9267754Smsmith *  c-indent-level: 4
9367754Smsmith *  c-basic-offset: 4
9467754Smsmith *  tab-width: 8
9567754Smsmith * End:
9667754Smsmith */
9767754Smsmith