basekernel/kernel/pipe.h

18 lines
478 B
C
Raw Permalink Normal View History

2024-10-14 23:09:21 +02:00
#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