Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Read and write calls

Read and write calls. More...

Functions

int VMPI_Stream_read (VMPI_Stream *st, char *buff, unsigned int block_count, VMPI_Stream_blocking block)
 Read data from a VMPI_Stream. More...
 
int VMPI_Stream_write (VMPI_Stream *st, char *buff, unsigned int block_count)
 Write data to a VMPI_Stream. More...
 
int VMPI_Stream_test_read (VMPI_Stream *st)
 Is this stream ready for read ? More...
 
int VMPI_Stream_test_write (VMPI_Stream *st)
 Is this stream ready for writing ? More...
 

Detailed Description

Read and write calls.

Function Documentation

int VMPI_Stream_read ( VMPI_Stream st,
char *  buff,
unsigned int  block_count,
VMPI_Stream_blocking  block 
)

Read data from a VMPI_Stream.

Parameters
sttarget stream
buffbuffer to write to
block_countnumber of blocks
blockshould this call be a blocking one
Returns
the size of read data if positive, a VMPI_Return_Status otherwise

Definition at line 493 of file VMPI_stream.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int VMPI_Stream_test_read ( VMPI_Stream st)

Is this stream ready for read ?

Parameters
sttarget stream
Returns
1 if the stream is ready for reading, 0 if not

Definition at line 655 of file VMPI_stream.c.

int VMPI_Stream_test_write ( VMPI_Stream st)

Is this stream ready for writing ?

Parameters
sttarget stream
Returns
1 if the stream is ready for writing, 0 if not

Definition at line 683 of file VMPI_stream.c.

int VMPI_Stream_write ( VMPI_Stream st,
char *  buff,
unsigned int  block_count 
)

Write data to a VMPI_Stream.

Parameters
sttarget stream
buffbuffer to read from
block_countnumber of blocks
Returns
the size of written data, -1 if fails

Definition at line 395 of file VMPI_stream.c.

Here is the call graph for this function:

Here is the caller graph for this function: