wrsm_memseg.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _WRSM_MEMSEG_H
#define _WRSM_MEMSEG_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* stuff exported by the RSMPI memseg module
*/
#include <sys/wrsm_transport.h>
#ifdef __cplusplus
extern "C" {
#endif
void wrsm_memseg_init(void);
void wrsm_memseg_fini(void);
void wrsm_memseg_network_init(wrsm_network_t *);
void wrsm_memseg_network_fini(wrsm_network_t *);
void wrsm_memseg_node_init(wrsm_node_t *);
void wrsm_memseg_node_fini(wrsm_node_t *);
void *wrsm_alloc(size_t, int);
/* for controller kstat */
typedef struct memseg_stat_data {
typedef struct wrsm_memseg_evt_args {
/*
* event functions for delivering incoming remote messages asynchronously
*/
void wrsm_connect_msg_evt(void *arg);
void wrsm_smallputmap_msg_evt(void *arg);
void wrsm_barriermap_msg_evt(void *arg);
void wrsm_segmap_msg_evt(void *arg);
void wrsm_disconnect_msg_evt(void *arg);
void wrsm_unpublish_msg_evt(void *arg);
void wrsm_access_msg_evt(void *arg);
#ifdef __cplusplus
}
#endif
#endif /* _WRSM_MEMSEG_H */