dapl_sp_util.h 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. 767754Smsmith * 867754Smsmith * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 967754Smsmith * or http://www.opensolaris.org/os/licensing. 1067754Smsmith * See the License for the specific language governing permissions 11193267Sjkim * and limitations under the License. 1270243Smsmith * 1367754Smsmith * When distributing Covered Code, include this CDDL HEADER in each 1467754Smsmith * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1567754Smsmith * If applicable, add the following below this CDDL HEADER, with the 1667754Smsmith * fields enclosed by brackets "[]" replaced with your own identifying 1767754Smsmith * information: Portions Copyright [yyyy] [name of copyright owner] 1867754Smsmith * 1967754Smsmith * CDDL HEADER END 2067754Smsmith */ 2167754Smsmith 2267754Smsmith/* 2367754Smsmith * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved. 2467754Smsmith */ 2567754Smsmith 2667754Smsmith/* 2767754Smsmith * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 2867754Smsmith * Use is subject to license terms. 2967754Smsmith */ 3067754Smsmith 3167754Smsmith/* 3267754Smsmith * 3367754Smsmith * HEADER: dapl_sp_util.h 3467754Smsmith * 3567754Smsmith * PURPOSE: Utility defs & routines for the PSP & RSP data structure 3667754Smsmith * 3767754Smsmith */ 3867754Smsmith 3967754Smsmith#ifndef _DAPL_PSP_UTIL_H_ 4067754Smsmith#define _DAPL_PSP_UTIL_H_ 4167754Smsmith 4267754Smsmith#ifdef __cplusplus 4367754Smsmithextern "C" { 4467754Smsmith#endif 4567754Smsmith 4667754SmsmithDAPL_SP * 4767754Smsmithdapls_sp_alloc( 4867754Smsmith IN DAPL_IA *ia_ptr, 4967754Smsmith IN DAT_BOOLEAN is_psp); 5067754Smsmith 5167754Smsmithvoid 5267754Smsmithdapls_sp_free_sp( 5367754Smsmith IN DAPL_SP *sp_ptr); 5467754Smsmith 5567754Smsmithvoid 5667754Smsmithdapl_sp_link_cr( 5767754Smsmith IN DAPL_SP *sp_ptr, 5867754Smsmith IN DAPL_CR *cr_ptr); 5967754Smsmith 6067754SmsmithDAPL_CR *dapl_sp_search_cr( 6167754Smsmith IN DAPL_SP *sp_ptr, 6267754Smsmith IN ib_cm_handle_t ib_cm_handle); 6367754Smsmith 6467754Smsmithvoid dapl_sp_remove_cr( 6567754Smsmith IN DAPL_SP *sp_ptr, 6667754Smsmith IN DAPL_CR *cr_ptr); 6767754Smsmith 6867754Smsmith#ifdef __cplusplus 6967754Smsmith} 7067754Smsmith#endif 7167754Smsmith 7267754Smsmith#endif /* _DAPL_PSP_UTIL_H_ */ 7367754Smsmith