/*
* 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_sp_util.c
*
* PURPOSE: Manage PSP Info structure
*
* $Id: dapl_sp_util.c,v 1.10 2003/08/20 14:55:39 sjs2 Exp $
*/
#include "dapl.h"
#include "dapl_sp_util.h"
/*
* Local definitions
*/
/*
* dapl_sp_alloc
*
* alloc and initialize a PSP INFO struct
*
* Input:
* IA INFO struct ptr
*
* Output:
* sp_ptr
*
* Returns:
* NULL
* pointer to sp info struct
*
*/
DAPL_SP *
{
/* Allocate EP */
return (NULL);
}
/* zero the structure */
/*
* initialize the header
*/
if (is_psp) {
} else {
}
/*
* Initialize the Body (set to NULL above)
*/
return (sp_ptr);
}
/*
* dapl_sp_free
*
* Free the passed in PSP structure.
*
* Input:
* entry point pointer
*
* Output:
* none
*
* Returns:
* none
*
*/
void
{
/* reset magic to prevent reuse */
}
/*
* dapl_cr_link_cr
*
* Add a cr to a PSP structure
*
* Input:
* sp_ptr
* cr_ptr
*
* Output:
* none
*
* Returns:
* none
*
*/
void
{
sp_ptr->cr_list_count++;
}
/*
* dapl_sp_search_cr
*
* Search for a CR on the PSP cr_list with a matching cm_handle. When
* found, remove it from the list and update fields.
*
* Input:
* sp_ptr
* ib_cm_handle
*
* Output:
* none
*
* Returns:
* cr_ptr_fnd Pointer to matching DAPL_CR
*
*/
DAPL_CR *
{
cr_ptr_fnd = NULL;
do {
cr_ptr_fnd = cr_ptr;
break;
}
return (cr_ptr_fnd);
}
/*
* dapl_sp_remove_cr
*
* Remove the CR from the PSP. Done prior to freeing the CR resource.
*
* Input:
* sp_ptr
* cr_ptr
*
* Output:
* none
*
* Returns:
* void
*
*/
void
{
"***dapl_sp_remove_cr: removing from empty queue! sp %p\n",
sp_ptr);
return;
}
sp_ptr->cr_list_count--;
}