The friendly Operating System for the Internet of Things
pipe.h File Reference

Detailed Description

#include <sys/types.h>
#include "mutex.h"
#include "ringbuffer.h"
#include "thread.h"
+ Include dependency graph for pipe.h:

Go to the source code of this file.

Data Structures

struct  riot_pipe
 A generic pipe. More...
 

Macros

#define PIPE_BUF   (128)
 Size of a dynamically malloc'd pipe. More...
 

Typedefs

typedef struct riot_pipe pipe_t
 A generic pipe.
 

Functions

void pipe_init (pipe_t *pipe, ringbuffer_t *rb, void(*free)(void *))
 Initialize a pipe. More...
 
ssize_t pipe_read (pipe_t *pipe, void *buf, size_t n)
 Read from a pipe. More...
 
ssize_t pipe_write (pipe_t *pipe, const void *buf, size_t n)
 Write to a pipe. More...
 
pipe_tpipe_malloc (unsigned size)
 Dynamically allocate a pipe with room for size bytes. More...
 
void pipe_free (pipe_t *rp)
 Free a pipe. More...