SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
sion_internal_seek.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_SEEK_H
15 #define SION_SION_SEEK_H
16 
17 #include "sion_const.h"
18 #include "sion_datatypes.h"
19 #include "sion_filedesc.h"
20 
22  int rank,
23  int blocknr,
24  sion_int64 posinblk );
25 
27  int rank,
28  int blocknr,
29  sion_int64 posinblk );
30 
32  int rank,
33  int blocknr,
34  sion_int64 posinblk );
35 
37  int rank,
38  int blocknr,
39  sion_int64 posinblk);
40 
42  int rank,
43  int blocknr,
44  sion_int64 posinblk );
45 
47  int rank,
48  int blocknr,
49  sion_int64 posinblk );
50 
52  int rank,
53  int blocknr,
54  sion_int64 posinblk);
55 
56 int _sion_seek_search_abs_pos( _sion_filedesc *sion_filedesc,
57  sion_int64 abspos,
58  int *newblocknr,
59  sion_int64 *newposinblk );
60 
61 int _sion_seek_search_end_pos(_sion_filedesc* sion_filedesc,
62  sion_int64 posend,
63  int* newblocknr,
64  sion_int64* newposinblk);
65 #endif
int _sion_seek_on_current_rank_read(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position in the same rank, updates internal data structure.
int _sion_seek_on_all_ranks_read_mapped(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position, updates internal data structure.
int _sion_seek_on_current_rank_write(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position in the same rank, updates internal data structure.
int _sion_seek_on_all_ranks_read(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position, updates internal data structure.
int _sion_seek_on_all_ranks_read_master(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position, updates internal data structure.
int _sion_seek_search_abs_pos(_sion_filedesc *sion_filedesc, sion_int64 abspos, int *newblocknr, sion_int64 *newposinblk)
Find block and position inside block for absolute position abspos.
int _sion_seek_on_all_ranks_write(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position, updates internal data structure.
int _sion_seek_search_end_pos(_sion_filedesc *sion_filedesc, sion_int64 posend, int *newblocknr, sion_int64 *newposinblk)
Find block and position inside block position relative to end.
int _sion_seek_on_all_ranks_write_mapped(_sion_filedesc *sion_filedesc, int rank, int blocknr, sion_int64 posinblk)
Function to set the file pointer to a new position, updates internal data structure.
Sion File Descriptor Structure.
Definition: sion_filedesc.h:79