PatchworkOS  dbbdc99
A non-POSIX operating system.
Loading...
Searching...
No Matches
pipe.c File Reference
#include <kernel/fs/file.h>
#include <kernel/fs/path.h>
#include <kernel/fs/vfs.h>
#include <kernel/log/log.h>
#include <kernel/log/panic.h>
#include <kernel/mem/pmm.h>
#include <kernel/module/module.h>
#include <kernel/sched/thread.h>
#include <kernel/sync/lock.h>
#include <kernel/utils/fifo.h>
#include <assert.h>
#include <stdlib.h>
#include <sys/fs.h>
#include <sys/math.h>
Include dependency graph for pipe.c:

Go to the source code of this file.

Data Structures

struct  pipe_t
 

Functions

static uint64_t pipe_open (file_t *file)
 
static uint64_t pipe_open2 (file_t *files[2])
 
static void pipe_close (file_t *file)
 
static uint64_t pipe_read (file_t *file, void *buffer, size_t count, size_t *offset)
 
static uint64_t pipe_write (file_t *file, const void *buffer, size_t count, size_t *offset)
 
static wait_queue_tpipe_poll (file_t *file, poll_events_t *revents)
 
uint64_t pipe_init (void)
 
void pipe_deinit (void)
 
uint64_t _module_procedure (const module_event_t *event)
 
 MODULE_INFO ("Pipes", "Kai Norberg", "Implements pipes for inter-process communication", OS_VERSION, "MIT", "BOOT_ALWAYS")
 

Variables

static dentry_tpipeDir = NULL
 
static dentry_tnewFile = NULL
 
static file_ops_t fileOps
 

Function Documentation

◆ _module_procedure()

uint64_t _module_procedure ( const module_event_t event)

Definition at line 283 of file pipe.c.

Here is the call graph for this function:

◆ MODULE_INFO()

MODULE_INFO ( "Pipes"  ,
"Kai Norberg"  ,
"Implements pipes for inter-process communication"  ,
OS_VERSION  ,
"MIT"  ,
"BOOT_ALWAYS"   
)