Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Data Structures | Functions
pipe.h File Reference
#include <stdbool.h>
#include <stdio.h>
#include <fs/fs.h>
#include <kernel/kfifo.h>
Include dependency graph for pipe.h:

Go to the source code of this file.

Data Structures

struct  pipe
 

Functions

struct filefifo_init (struct inode *file_inode, struct pipe *pipe)
 
ssize_t fifo_read (struct file *filp, char *buf, size_t size, off_t offset)
 
ssize_t fifo_write (struct file *filp, const char *buf, size_t size, off_t offset)
 
struct filepipe_alloc (void)
 
bool file_is_pipe (struct file *filp)
 
void pipe_release (struct file *filp)
 
void pipe_take (struct file *filp, bool writer)
 
void pipe_give_up (struct file *filp, bool writer)