Implement streams IPC mechanism
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m47s

This commit is contained in:
2026-03-18 22:27:56 +01:00
parent 77ab25bcee
commit 80a728f04b
22 changed files with 311 additions and 50 deletions

View File

@@ -106,3 +106,11 @@ int exec_partial (const char* volume, const char* path) {
int exec_partial_fini (int pid) { return (int)do_syscall (SYS_EXEC_PARTIAL_FINI, pid); }
int get_self_pid (void) { return (int)do_syscall (SYS_GET_SELF_PID, 0); }
int stream_write (int pgid, int rid, void* buffer, size_t size) {
return (int)do_syscall (SYS_STREAM_WRITE, pgid, rid, buffer, size);
}
int stream_read (int pgid, int rid, void* buffer, size_t size) {
return (int)do_syscall (SYS_STREAM_READ, pgid, rid, buffer, size);
}

View File

@@ -111,4 +111,10 @@ int exec_partial_fini (int pid);
/* get this process' PID */
int get_self_pid (void);
/* Write to a stream */
int stream_write (int pgid, int rid, void* buffer, size_t size);
/* Read from a stream */
int stream_read (int pgid, int rid, void* buffer, size_t size);
#endif // _LIBMSL_M_SYSTEM_H