/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*
* MODULE: dapl_srq_util.c
*
* PURPOSE: Shared Receive Queue utility functions.
*
*/
#include "dapl.h"
#include "dapl_cookie.h"
#include "dapl_srq_util.h"
/*
* dapl_srq_alloc
*
* Allocate SRQ structure.
*
* Input:
* IA, srq_attr
*
* Output:
* none
*
* Returns:
* Pointer to alloted SRQ
*
*/
DAPL_SRQ *
{
/* Allocate SRQ */
goto bail;
}
/* zero the structure */
/*
* initialize the header
*/
/* The SRQ ptr is stored in the cookies */
if (retval != DAT_SUCCESS) {
"failed %d\n", retval);
goto bail;
}
bail:
return (srq_ptr);
}
/*
* dapl_srq_dealloc
*
* Free the passed in SRQ structure.
*
* Input:
* entry point pointer
*
* Output:
* none
*
* Returns:
* none
*
*/
void
{
/* reset magic to prevent reuse */
}