SIONlib
1.7.7
Scalable I/O library for parallel access to task-local files
|
Go to the source code of this file.
Functions | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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 . More... | |
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. More... | |
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.
This function works on a SINGLE SION file
[in,out] | sion_filedesc | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 52 of file sion_internal_seek.c.
int _sion_seek_on_all_ranks_read_mapped | ( | _sion_filedesc * | sion_filedesc_master, |
int | rank, | ||
int | blocknr, | ||
sion_int64 | posinblk | ||
) |
Function to set the file pointer to a new position, updates internal data structure.
This function works on a SINGLE SION file, Multi-files have to be handle in upper layer
[in,out] | sion_filedesc_master | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 389 of file sion_internal_seek.c.
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.
This function works on Multi-files
[in,out] | sion_filedesc | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 160 of file sion_internal_seek.c.
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.
This function works on a SINGLE SION file, Multi-files have to be handle in upper layer
[in,out] | sion_filedesc | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 537 of file sion_internal_seek.c.
int _sion_seek_on_all_ranks_write_mapped | ( | _sion_filedesc * | sion_filedesc_master, |
int | rank, | ||
int | blocknr, | ||
sion_int64 | posinblk | ||
) |
Function to set the file pointer to a new position, updates internal data structure.
This function works on a SINGLE SION file, Multi-files have to be handle in upper layer
[in,out] | sion_filedesc_master | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 629 of file sion_internal_seek.c.
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.
[in,out] | sion_filedesc | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 273 of file sion_internal_seek.c.
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.
[in,out] | sion_filedesc | sion data structure |
[in] | rank | rank number of the process (SION_CURRENT_RANK to select the current rank) |
[in] | blocknr | block number (SION_CURRENT_BLK to select the current block) |
[in] | posinblk | position in the block (SION_CURRENT_POS to select the current position) |
1 | if file pointer can be moved to new position 0 otherwise |
Definition at line 766 of file sion_internal_seek.c.
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
.
[in] | sion_filedesc | sion data structure |
[in] | abspos | absolut position in file |
[out] | newblocknr | block number for absolut position |
[out] | newposinblk | position in the block for absolut position |
1 | if abspos lays inside available data 0 otherwise |
Definition at line 824 of file sion_internal_seek.c.
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.
[in] | sion_filedesc | sion data structure |
[in] | posend | position in file relative to end (-1 seeks before last byte) |
[out] | newblocknr | block number for new position |
[out] | newposinblk | position in the block for new position |
1 | if posend lays inside available data 0 otherwise |
Definition at line 864 of file sion_internal_seek.c.