root/ompi/mca/fs/ufs/fs_ufs.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-2006 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-2016 University of Houston. All rights reserved.
  13  * Copyright (c) 2015-2018 Research Organization for Information Science
  14  *                         and Technology (RIST). All rights reserved.
  15  * Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 
  23 #ifndef MCA_FS_UFS_H
  24 #define MCA_FS_UFS_H
  25 
  26 #include "ompi_config.h"
  27 #include "ompi/mca/mca.h"
  28 #include "ompi/mca/fs/fs.h"
  29 #include "ompi/mca/common/ompio/common_ompio.h"
  30 
  31 extern int mca_fs_ufs_priority;
  32 extern int mca_fs_ufs_lock_algorithm;
  33 
  34 #define FS_UFS_LOCK_AUTO        0
  35 #define FS_UFS_LOCK_NEVER       1
  36 #define FS_UFS_LOCK_ENTIRE_FILE 2
  37 #define FS_UFS_LOCK_RANGES      3
  38 
  39 BEGIN_C_DECLS
  40 
  41 int mca_fs_ufs_component_init_query(bool enable_progress_threads,
  42                                         bool enable_mpi_threads);
  43 struct mca_fs_base_module_1_0_0_t *
  44 mca_fs_ufs_component_file_query (ompio_file_t *fh, int *priority);
  45 int mca_fs_ufs_component_file_unquery (ompio_file_t *file);
  46 
  47 int mca_fs_ufs_module_init (ompio_file_t *file);
  48 int mca_fs_ufs_module_finalize (ompio_file_t *file);
  49 
  50 OMPI_MODULE_DECLSPEC extern mca_fs_base_component_2_0_0_t mca_fs_ufs_component;
  51 /*
  52  * ******************************************************************
  53  * ********* functions which are implemented in this module *********
  54  * ******************************************************************
  55  */
  56 
  57 int mca_fs_ufs_file_open (struct ompi_communicator_t *comm,
  58                           const char *filename,
  59                           int amode,
  60                           struct opal_info_t *info,
  61                           ompio_file_t *fh);
  62 
  63 int mca_fs_ufs_file_close (ompio_file_t *fh);
  64 
  65 int mca_fs_ufs_file_delete (char *filename,
  66                             struct opal_info_t *info);
  67 
  68 int mca_fs_ufs_file_set_size (ompio_file_t *fh,
  69                               OMPI_MPI_OFFSET_TYPE size);
  70 
  71 int mca_fs_ufs_file_get_size (ompio_file_t *fh,
  72                               OMPI_MPI_OFFSET_TYPE *size);
  73 
  74 int mca_fs_ufs_file_sync (ompio_file_t *fh);
  75 
  76 int mca_fs_ufs_file_seek (ompio_file_t *fh,
  77                           OMPI_MPI_OFFSET_TYPE offset,
  78                           int whence);
  79 /*
  80  * ******************************************************************
  81  * ************ functions implemented in this module end ************
  82  * ******************************************************************
  83  */
  84 
  85 END_C_DECLS
  86 
  87 #endif /* MCA_FS_UFS_H */

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