OpenMPI  0.1.1
fs_ufs.h
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-2011 University of Houston. All rights reserved.
13  * $COPYRIGHT$
14  *
15  * Additional copyrights may follow
16  *
17  * $HEADER$
18  */
19 
20 #ifndef MCA_FS_UFS_H
21 #define MCA_FS_UFS_H
22 
23 #include "ompi_config.h"
24 #include "opal/mca/mca.h"
25 #include "ompi/mca/fs/fs.h"
26 #include "ompi/mca/io/ompio/io_ompio.h"
27 
28 extern int mca_fs_ufs_priority;
29 
30 BEGIN_C_DECLS
31 
32 int mca_fs_ufs_component_init_query(bool enable_progress_threads,
33  bool enable_mpi_threads);
35 mca_fs_ufs_component_file_query (mca_io_ompio_file_t *fh, int *priority);
36 int mca_fs_ufs_component_file_unquery (mca_io_ompio_file_t *file);
37 
38 int mca_fs_ufs_module_init (mca_io_ompio_file_t *file);
39 int mca_fs_ufs_module_finalize (mca_io_ompio_file_t *file);
40 
41 OMPI_MODULE_DECLSPEC extern mca_fs_base_component_2_0_0_t mca_fs_ufs_component;
42 /*
43  * ******************************************************************
44  * ********* functions which are implemented in this module *********
45  * ******************************************************************
46  */
47 
48 int mca_fs_ufs_file_open (struct ompi_communicator_t *comm,
49  char *filename,
50  int amode,
51  struct ompi_info_t *info,
53 
54 int mca_fs_ufs_file_close (mca_io_ompio_file_t *fh);
55 
56 int mca_fs_ufs_file_delete (char *filename,
57  struct ompi_info_t *info);
58 
59 int mca_fs_ufs_file_set_size (mca_io_ompio_file_t *fh,
60  OMPI_MPI_OFFSET_TYPE size);
61 
62 int mca_fs_ufs_file_get_size (mca_io_ompio_file_t *fh,
63  OMPI_MPI_OFFSET_TYPE *size);
64 
65 int mca_fs_ufs_file_set_info (mca_io_ompio_file_t *fh,
66  struct ompi_info_t *info);
67 
68 int mca_fs_ufs_file_sync (mca_io_ompio_file_t *fh);
69 
70 int mca_fs_ufs_file_seek (mca_io_ompio_file_t *fh,
71  OMPI_MPI_OFFSET_TYPE offset,
72  int whence);
73 /*
74  * ******************************************************************
75  * ************ functions implemented in this module end ************
76  * ******************************************************************
77  */
78 
79 END_C_DECLS
80 
81 #endif /* MCA_FS_UFS_H */
Top-level interface for all MCA components.
Definition: info.h:38
Definition: fs.h:127
Back-end structure for MPI_File.
Definition: io_ompio.h:121
Definition: communicator.h:118