/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*
* MODULE: dapl_evd_create.c
*
* PURPOSE: EVENT management
*
* Description: Interfaces in this file are completely defined in
* the uDAPL 1.1 API, Chapter 6, section 3
*
* $Id: dapl_evd_create.c,v 1.12 2003/08/06 14:04:27 sjs2 Exp $
*/
#include "dapl.h"
#include "dapl_evd_util.h"
/*
* dapl_evd_create
*
* DAPL Requirements Version xxx, 6.3.2.1
*
* Create and instance of Event Dispatcher.
*
* Input:
* ia_handle
* cno_handle
* evd_min_qlen
* evd_flags
*
* Output:
* evd_handle
*
* Returns:
* DAT_SUCCESS
* DAT_INSUFFICIENT_RESOURCES
* DAT_INVALID_PARAMETER
*/
/*
* ** REVISIT **
*
* Selecting the cqe handing domain must still be done.
* We *probably* want one per hca, but we could have one
* per provider or one per consumer.
*/
/*
* Note that if there already is a cq, it is not deleted
* even if it is not required. However, it will not be armed.
*/
{
int i;
int j;
"dapl_evd_create (%p, %d, %p, 0x%x, %p)\n",
*evd_handle = NULL;
goto bail;
}
if (evd_min_qlen <= 0) {
goto bail;
}
goto bail;
}
if ((cno_handle != DAT_HANDLE_NULL) &&
goto bail;
}
/*
* Check the merging attributes to ensure the combination of
* flags requested is supported.
*/
0, NULL,
for (i = 0; i < 6; i++) {
for (j = i; j < 6; j++) {
if (provider_attr.
== DAT_FALSE) {
goto bail;
}
}
} /* end for j */
}
} /* end for i */
&evd_ptr);
if (dat_status != DAT_SUCCESS) {
goto bail;
}
bail:
if (dat_status != DAT_SUCCESS) {
if (evd_ptr) {
(void) dapl_evd_free(evd_ptr);
}
}
"dapl_evd_create () returns 0x%x\n",
return (dat_status);
}