HPCToolkit
hpcio-buffer.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "hpcfmt.h"
#include "hpcio-buffer.h"
#include "spinlock.h"
#include <include/min-max.h>
Include dependency graph for hpcio-buffer.c:

Go to the source code of this file.

Macros

#define HPCIO_OUTBUF_MAGIC   0x494F4246
 

Functions

static int outbuf_flush_buffer (hpcio_outbuf_t *outbuf)
 
int hpcio_outbuf_attach (hpcio_outbuf_t *outbuf, int fd, void *buf_start, size_t buf_size, int flags)
 
ssize_t hpcio_outbuf_write (hpcio_outbuf_t *outbuf, const void *data, size_t size)
 
int hpcio_outbuf_flush (hpcio_outbuf_t *outbuf)
 
int hpcio_outbuf_close (hpcio_outbuf_t *outbuf)
 

Macro Definition Documentation

◆ HPCIO_OUTBUF_MAGIC

#define HPCIO_OUTBUF_MAGIC   0x494F4246

Definition at line 93 of file hpcio-buffer.c.

Function Documentation

◆ hpcio_outbuf_attach()

int hpcio_outbuf_attach ( hpcio_outbuf_t outbuf,
int  fd,
void *  buf_start,
size_t  buf_size,
int  flags 
)

Definition at line 148 of file hpcio-buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcio_outbuf_close()

int hpcio_outbuf_close ( hpcio_outbuf_t outbuf)

Definition at line 241 of file hpcio-buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcio_outbuf_flush()

int hpcio_outbuf_flush ( hpcio_outbuf_t outbuf)

Definition at line 216 of file hpcio-buffer.c.

Here is the call graph for this function:

◆ hpcio_outbuf_write()

ssize_t hpcio_outbuf_write ( hpcio_outbuf_t outbuf,
const void *  data,
size_t  size 
)

Definition at line 175 of file hpcio-buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ outbuf_flush_buffer()

static int outbuf_flush_buffer ( hpcio_outbuf_t outbuf)
static

Definition at line 104 of file hpcio-buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function: