rds.h revision b86efd96f8acd85ddaa930a2f0c1d664237e4aaf
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _RDS_H
#define _RDS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/sysmacros.h>
#include <sys/socketvar.h>
#ifdef DEBUG
extern int rdsdebug;
#else
#endif
typedef struct rds_s {
int rds_refcnt;
void *rds_ulpd; /* queue to send message on */
} rds_t;
#define RDS_CLOSING 0x1
#define RDS_INCR_REF_CNT(rds) { \
rds->rds_refcnt++; \
}
#define RDS_DEC_REF_CNT(rds) { \
rds->rds_refcnt--; \
if (rds->rds_refcnt == 0) { \
} else { \
} \
}
/* RDS bind fanout hash structure. */
typedef struct rds_bind_fanout_s {
char bf_pad[48];
#else
char bf_pad[56];
#endif
}rds_bf_t;
extern ldi_ident_t rds_li;
#define RDS_BIND_FANOUT_SIZE 512
#define RDS_BIND_HASH(lport) \
#define AF_INET_OFFLOAD 30
extern uint_t rds_bind_fanout_size;
extern rds_bf_t *rds_bind_fanout;
extern optdb_obj_t rds_opt_obj;
extern void rds_hash_init();
extern void rds_init();
extern void rds_fini();
#ifdef __cplusplus
}
#endif
#endif /* _RDS_H */