2004-12-21 22:16:09 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-23 03:32:36 +00:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 19:57:48 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-12-21 22:16:09 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-12-21 22:16:09 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* I/O Forwarding Service
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_IOF_BASE_H
|
|
|
|
#define MCA_IOF_BASE_H
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte_config.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_UIO_H
|
|
|
|
#include <sys/uio.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2005-07-02 16:46:27 +00:00
|
|
|
#include "opal/class/opal_free_list.h"
|
2005-07-03 22:45:48 +00:00
|
|
|
#include "opal/threads/condition.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "orte/mca/iof/iof.h"
|
2004-12-21 22:16:09 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
struct orte_iof_base_t {
|
2005-01-12 20:51:34 +00:00
|
|
|
int iof_output;
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_t iof_components_opened;
|
2005-03-18 23:40:08 +00:00
|
|
|
bool iof_flush;
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_t iof_endpoints;
|
2005-07-03 22:45:48 +00:00
|
|
|
opal_mutex_t iof_lock;
|
|
|
|
opal_condition_t iof_condition;
|
2005-01-14 00:11:24 +00:00
|
|
|
size_t iof_waiting;
|
2005-07-02 16:46:27 +00:00
|
|
|
opal_free_list_t iof_fragments;
|
2005-01-12 20:51:34 +00:00
|
|
|
size_t iof_window_size;
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_process_name_t* iof_service;
|
2005-01-12 20:51:34 +00:00
|
|
|
};
|
2005-03-14 20:57:21 +00:00
|
|
|
typedef struct orte_iof_base_t orte_iof_base_t;
|
2005-01-12 20:51:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-08-20 15:54:04 +00:00
|
|
|
ORTE_DECLSPEC int orte_iof_base_open(void);
|
|
|
|
ORTE_DECLSPEC int orte_iof_base_close(void);
|
|
|
|
ORTE_DECLSPEC int orte_iof_base_select(void);
|
|
|
|
ORTE_DECLSPEC int orte_iof_base_flush(void);
|
2005-01-12 20:51:34 +00:00
|
|
|
|
2006-08-20 15:54:04 +00:00
|
|
|
ORTE_DECLSPEC extern orte_iof_base_t orte_iof_base;
|
2004-12-21 22:16:09 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* MCA_PML_H */
|