processctl() PCTL_SPAWN cmd, scheduler embryo state, redirected pipes

This commit is contained in:
2025-09-10 01:11:22 +02:00
parent c4c26e0e19
commit 91c493c818
17 changed files with 183 additions and 28 deletions

View File

@ -12,9 +12,10 @@ typedef struct IpcPipe {
struct IpcPipe *next;
RBuf rbuf;
SpinLock spinlock;
uint64_t ownerpid;
} IpcPipe;
int32_t ipc_pipeinit(IpcPipe *pipe);
int32_t ipc_pipeinit(IpcPipe *pipe, uint64_t pid);
void ipc_pipefree(IpcPipe *pipe);
int32_t ipc_pipewrite(IpcPipe *pipe, const uint8_t *const buffer, size_t n);
int32_t ipc_piperead(IpcPipe *pipe, uint8_t *const buffer, size_t n);