root/ompi/mca/fs/base/base.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2005 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2008      Cisco Systems, Inc.  All rights reserved.
  13  * Copyright (c) 2008-2018 University of Houston. All rights reserved.
  14  * Copyright (c) 2018      Research Organization for Information Science
  15  *                         and Technology (RIST). All rights reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 
  23 /**
  24  * @file
  25  *
  26  * MCA fs base framework public interface functions.
  27  */
  28 
  29 #ifndef MCA_FS_BASE_H
  30 #define MCA_FS_BASE_H
  31 
  32 #include "ompi_config.h"
  33 
  34 #include "mpi.h"
  35 #include "opal/mca/base/base.h"
  36 #include "ompi/mca/common/ompio/common_ompio.h"
  37 #include "ompi/mca/fs/fs.h"
  38 
  39 
  40 BEGIN_C_DECLS
  41 
  42 OMPI_DECLSPEC int mca_fs_base_file_select(struct ompio_file_t *file,
  43                             mca_base_component_t *preferred);
  44 
  45 OMPI_DECLSPEC int mca_fs_base_file_unselect(struct ompio_file_t *file);
  46 
  47 OMPI_DECLSPEC int mca_fs_base_find_available(bool enable_progress_threads,
  48                                              bool enable_mpi_threads);
  49 
  50 OMPI_DECLSPEC int mca_fs_base_init_file (struct ompio_file_t *file);
  51 
  52 OMPI_DECLSPEC int mca_fs_base_get_param (struct ompio_file_t *file, int keyval);
  53 OMPI_DECLSPEC void mca_fs_base_get_parent_dir (char *filename, char **dirnamep);
  54 OMPI_DECLSPEC int  mca_fs_base_get_fstype(char *fname);
  55 
  56 OMPI_DECLSPEC int mca_fs_base_file_delete (char* file_name, struct opal_info_t *info);
  57 OMPI_DECLSPEC int mca_fs_base_file_sync (ompio_file_t *fh);
  58 OMPI_DECLSPEC int mca_fs_base_file_get_size (ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE *size);
  59 OMPI_DECLSPEC int mca_fs_base_file_set_size (ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE size);
  60 OMPI_DECLSPEC int mca_fs_base_file_close (ompio_file_t *fh);
  61 
  62 /*
  63  * Globals
  64  */
  65 
  66 OMPI_DECLSPEC extern mca_base_framework_t ompi_fs_base_framework;
  67 
  68 END_C_DECLS
  69 
  70 #endif /* MCA_BASE_FS_H */

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