SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
sion_cache.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** SIONLIB http://www.fz-juelich.de/jsc/sionlib **
3 *****************************************************************************
4 ** Copyright (c) 2008-2019 **
5 ** Forschungszentrum Juelich, Juelich Supercomputing Centre **
6 ** **
7 ** See the file COPYRIGHT in the package base directory for details **
8 ****************************************************************************/
9 
14 #ifndef SION_SION_CACHE_H
15 #define SION_SION_CACHE_H
16 
17 #include "sion_const.h"
18 #include "sion_filedesc.h"
19 
20 int _sion_cache_check_env(_sion_filedesc *sion_filedesc);
21 
22 int _sion_cache_init(_sion_filedesc *sion_filedesc);
23 
24 int _sion_cache_destroy(_sion_filedesc *sion_filedesc);
25 
26 
27 /* internal */
28 int _sion_cache_create_linux(_sion_filedesc *sion_filedesc);
29 int _sion_cache_load_linux(_sion_filedesc *sion_filedesc);
30 int _sion_cache_destroy_linux(_sion_filedesc *sion_filedesc);
31 
32 #endif
int _sion_cache_destroy_linux(_sion_filedesc *sion_filedesc)
Deallocate cache for linux.
Definition: sion_cache.c:223
int _sion_cache_load_linux(_sion_filedesc *sion_filedesc)
Load an already allocated cache for linux.
Definition: sion_cache.c:177
int _sion_cache_init(_sion_filedesc *sion_filedesc)
Allocate and initalize the cache.
Definition: sion_cache.c:79
int _sion_cache_create_linux(_sion_filedesc *sion_filedesc)
Allocate cache for linux.
Definition: sion_cache.c:132
int _sion_cache_check_env(_sion_filedesc *sion_filedesc)
Check if environment variables are set to use cache.
Definition: sion_cache.c:57
int _sion_cache_destroy(_sion_filedesc *sion_filedesc)
Deallocate the cache.
Definition: sion_cache.c:111
Sion File Descriptor Structure.
Definition: sion_filedesc.h:79