HPCToolkit
hpcio-buffer.h File Reference
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include "spinlock.h"
Include dependency graph for hpcio-buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpcio_outbuf_s
 

Macros

#define HPCIO_OUTBUF_LOCKED   0x1
 
#define HPCIO_OUTBUF_UNLOCKED   0x2
 

Typedefs

typedef struct hpcio_outbuf_s hpcio_outbuf_t
 

Functions

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_LOCKED

#define HPCIO_OUTBUF_LOCKED   0x1

Definition at line 74 of file hpcio-buffer.h.

◆ HPCIO_OUTBUF_UNLOCKED

#define HPCIO_OUTBUF_UNLOCKED   0x2

Definition at line 75 of file hpcio-buffer.h.

Typedef Documentation

◆ hpcio_outbuf_t

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: