root/orte/mca/oob/oob.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2006 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
  14  *                         reserved.
  15  * Copyright (c) 2015-2019 Intel, Inc.  All rights reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 /** @file:
  23  *
  24  * Contains the internal functions and typedefs for the use of the oob
  25  */
  26 
  27 #ifndef MCA_OOB_H_
  28 #define MCA_OOB_H_
  29 
  30 #include "orte_config.h"
  31 #include "orte/types.h"
  32 
  33 #ifdef HAVE_UNISTD_H
  34 #include <unistd.h>
  35 #endif
  36 #ifdef HAVE_SYS_UIO_H
  37 #include <sys/uio.h>
  38 #endif
  39 #ifdef HAVE_NET_UIO_H
  40 #include <net/uio.h>
  41 #endif
  42 
  43 #include "opal/class/opal_list.h"
  44 #include "opal/class/opal_pointer_array.h"
  45 #include "orte/mca/mca.h"
  46 
  47 #include "orte/mca/rml/base/base.h"
  48 
  49 BEGIN_C_DECLS
  50 
  51 typedef int (*mca_oob_base_component_avail_fn_t)(void);
  52 typedef int (*mca_oob_base_component_startup_fn_t)(void);
  53 typedef void (*mca_oob_base_component_shutdown_fn_t)(void);
  54 typedef int (*mca_oob_base_component_send_fn_t)(orte_rml_send_t *msg);
  55 typedef char* (*mca_oob_base_component_get_addr_fn_t)(void);
  56 typedef int (*mca_oob_base_component_set_addr_fn_t)(orte_process_name_t *peer,
  57                                                     char **uris);
  58 typedef bool (*mca_oob_base_component_is_reachable_fn_t)(orte_process_name_t *peer);
  59 typedef void (*mca_oob_ping_callback_fn_t)(int status, void *cbdata);
  60 
  61 #if OPAL_ENABLE_FT_CR == 1
  62 typedef int (*mca_oob_base_component_ft_event_fn_t)(int state);
  63 #endif
  64 
  65 typedef struct {
  66     mca_base_component_t                            oob_base;
  67     mca_base_component_data_t                       oob_data;
  68     int                                             idx;
  69     int                                             priority;
  70     mca_oob_base_component_avail_fn_t               available;
  71     mca_oob_base_component_startup_fn_t             startup;
  72     mca_oob_base_component_shutdown_fn_t            shutdown;
  73     mca_oob_base_component_send_fn_t                send_nb;
  74     mca_oob_base_component_get_addr_fn_t            get_addr;
  75     mca_oob_base_component_set_addr_fn_t            set_addr;
  76     mca_oob_base_component_is_reachable_fn_t        is_reachable;
  77 #if OPAL_ENABLE_FT_CR == 1
  78     mca_oob_base_component_ft_event_fn_t            ft_event;
  79 #endif
  80 } mca_oob_base_component_t;
  81 
  82 /**
  83  * Macro for use in components that are of type oob
  84  */
  85 #define MCA_OOB_BASE_VERSION_2_0_0 \
  86     ORTE_MCA_BASE_VERSION_2_1_0("oob", 2, 0, 0)
  87 
  88 END_C_DECLS
  89 
  90 #endif

/* [<][>][^][v][top][bottom][index][help] */