SIONlib  1.7.1
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-2016 **
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 
19  int rank,
20  int blocknr,
21  sion_int64 posinblk );
22 
24  int rank,
25  int blocknr,
26  sion_int64 posinblk );
27 
29  int rank,
30  int blocknr,
31  sion_int64 posinblk );
32 
34  int rank,
35  int blocknr,
36  sion_int64 posinblk);
37 
39  int rank,
40  int blocknr,
41  sion_int64 posinblk );
42 
44  int rank,
45  int blocknr,
46  sion_int64 posinblk );
47 
49  int rank,
50  int blocknr,
51  sion_int64 posinblk);
52 
53 int _sion_seek_search_abs_pos( _sion_filedesc *sion_filedesc,
54  sion_int64 abspos,
55  int *newblocknr,
56  sion_int64 *newposinblk );
57 
58 int _sion_seek_search_end_pos(_sion_filedesc* sion_filedesc,
59  sion_int64 posend,
60  int* newblocknr,
61  sion_int64* newposinblk);
62 #endif
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.
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.
Sion File Descriptor Structure.
Definition: sion_filedesc.h:77
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_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_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_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_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_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.