/*
* 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 (c) 1998-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include <fcntl.h>
#include <dlfcn.h>
#include <sched.h>
#include <errno.h>
#include <strings.h>
#include <rsmapi.h>
#include <rsmlib_in.h>
extern int _rsm_memseg_import_map(rsm_memseg_import_handle_t,
void **,
extern int _rsm_memseg_import_unmap(rsm_memseg_import_handle_t);
};
static int
{
uint_t i = 0;
int e;
"loopback_get8: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_get8: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_get16: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_get16: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_get32: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_get32: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_get64: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_get64: exit\n"));
return (RSM_SUCCESS);
}
static int
{
uint_t i = 0;
int e;
"loopback_put8: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_put8: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_put16: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_put16: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_put32: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_put32: exit\n"));
return (RSM_SUCCESS);
}
static int
{
/* LINTED */
uint_t i = 0;
int e;
"loopback_put64: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
for (i = 0; i < rep_cnt; i++) {
}
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_put64: exit\n"));
return (RSM_SUCCESS);
}
static int
{
int e;
"loopback_get: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
length);
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_get: exit\n"));
return (RSM_SUCCESS);
}
/*
* Move data to each component of the io vector from the remote segment
*/
int
{
int i;
"loopback_getv: enter\n"));
/* do the vector data transfer */
for (i = 0; i < sg_io->io_request_count; i++) {
iovec++;
}
"loopback_getv: exit\n"));
sg_io->io_residual_count = 0;
return (RSM_SUCCESS);
}
static int
{
int e;
"loopback_put: enter\n"));
if (e != RSM_SUCCESS) {
return (e);
}
}
length);
if (e != RSM_SUCCESS) {
return (e);
}
}
"loopback_put: exit\n"));
return (RSM_SUCCESS);
}
/*
* Move data from each component of the io vector to the remote segment
*/
int
{
int i;
"loopback_putv: enter\n"));
/* do the vector data transfer */
for (i = 0; i < sg_io->io_request_count; i++) {
iovec++;
}
"loopback_putv: exit\n"));
sg_io->io_residual_count = 0;
return (RSM_SUCCESS);
}
static int
{
"loopback_create_handle: enter\n"));
"loopback_create_handle: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_free_handle: enter\n"));
"loopback_free_handle: exit\n"));
return (RSM_SUCCESS);
}
/*
* import side memory segment operations (barriers):
*/
static int
{
"loopback_init_barrier: enter\n"));
"loopback_init_barrier: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_open_barrier: enter\n"));
"loopback_open_barrier: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_order_barrier: enter\n"));
"loopback_order_barrier: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_close_barrier: enter\n"));
"loopback_close_barrier: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_destroy_barrier: enter\n"));
"loopback_destroy_barrier: exit\n"));
return (RSM_SUCCESS);
}
static int
{
"loopback_get_lib_attr: enter\n"));
"loopback_get_lib_attr: exit\n"));
return (RSM_SUCCESS);
}
/*
* If an entry is NULL, the parent will fill it out with its entry point.
*/
void
{
"__rsmloopback_init_ops: enter\n"));
"__rsmloopback_init_ops: exit\n"));
}