/*
* 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 2001-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _RSMLIB_IN_H
#define _RSMLIB_IN_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <fcntl.h>
/* This is the default barrier implementation structure */
typedef struct {
/* least significant 3 bytes of the fd should be unique enough */
/*
* pollfd_table maintains a mapping from fd to resource number. It also
* provides a mechanism to check if a given fd corresponds to an rsmapi
* segment. Entries get added to this table as a result of
* rsm_memseg_get_pollfd and removed as a result of rsm_memseg_release_pollfd.
*/
typedef struct {
int fd;
typedef struct rsm_pollfd_chunk {
int nfree;
typedef struct {
/*
* The following macros are defined only if the DEBUG flag is enabled
* The macro makes use of category and level values defined in rsm.h
* and the dbg_printf function defined in rsmlib.c (defined as an
* extern below)
*/
#ifdef DEBUG
#else
#define TRACELOG
#endif
#ifdef __cplusplus
}
#endif
#endif /* _RSMLIB_IN_H */