From 94af3a0210b512af50a62baf74af6e027a967bd3 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:09:21 +0200 Subject: [PATCH] Mon 14 Oct 23:06:38 CEST 2024 --- kernel/pipe.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 kernel/pipe.h diff --git a/kernel/pipe.h b/kernel/pipe.h new file mode 100644 index 0000000..da7bb46 --- /dev/null +++ b/kernel/pipe.h @@ -0,0 +1,17 @@ +#ifndef PIPE_H +#define PIPE_H + +#include "kernel/types.h" + +struct pipe *pipe_create(); +struct pipe *pipe_addref( struct pipe *p ); +void pipe_delete(struct pipe *p); +void pipe_flush(struct pipe *p); + +int pipe_write(struct pipe *p, char *buffer, int size); +int pipe_write_nonblock(struct pipe *p, char *buffer, int size); +int pipe_read(struct pipe *p, char *buffer, int size); +int pipe_read_nonblock(struct pipe *p, char *buffer, int size); +int pipe_size( struct pipe *p); + +#endif