Simple IPC with pipes

This commit is contained in:
2025-09-06 11:47:01 +02:00
parent 643d692259
commit cd0e262e56
21 changed files with 312 additions and 17 deletions

View File

@ -6,6 +6,7 @@
#include "spinlock/spinlock.h"
#include "bitmap/bitmap.h"
#include "vfs/vfs.h"
#include "ipc/pipe/pipe.h"
#define PROC_NAME_MAX 0x100
@ -13,7 +14,9 @@
#define PROC_STACKSIZE (PROC_STACKBLOCKS * BITMAP_BLOCK_SIZE)
#define PROC_MAX 0x100 // max amount of processes
#define PROC_VFSHANDLES_MAX 0x80
#define PROC_VFSHANDLES_MAX 0x80
#define PROC_PIPEHANDLES_MAX 0x20
typedef struct {
IntrStackFrame trapframe;
@ -42,6 +45,8 @@ typedef struct Proc {
VfsObj *vobjs[PROC_VFSHANDLES_MAX];
uint64_t vobjcnt;
IpcPipe *pipes[PROC_PIPEHANDLES_MAX];
} Proc;
typedef struct {