Volume-centric VFS implementation
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s

This commit is contained in:
2026-02-25 08:53:54 +01:00
parent 62a6543dab
commit 704db2dfa4
26 changed files with 441 additions and 406 deletions

View File

@@ -39,18 +39,18 @@ int device_do (int device_id, int cmd, void* a1, void* a2, void* a3, void* a4) {
return (int)do_syscall (SYS_DEVICE_DO, device_id, cmd, a1, a2, a3, a4);
}
int exec (const char* path) { return (int)do_syscall (SYS_EXEC, path); }
int exec (const char* volume, const char* path) { return (int)do_syscall (SYS_EXEC, volume, path); }
int open (const char* path) { return (int)do_syscall (SYS_OPEN, path); }
int volume_open (const char* volume) { return (int)do_syscall (SYS_VOLUME_OPEN, volume); }
int close (int handle) { return (int)do_syscall (SYS_CLOSE, handle); }
int volume_close (void) { return (int)do_syscall (SYS_VOLUME_CLOSE, 0); }
int read (int handle, size_t off, uint8_t* buffer, size_t size) {
return (int)do_syscall (SYS_READ, handle, off, buffer, size);
int read (const char* path, size_t off, uint8_t* buffer, size_t size) {
return (int)do_syscall (SYS_READ, path, off, buffer, size);
}
int describe (int handle, struct desc* desc) {
return (int)do_syscall (SYS_DESCRIBE, handle, desc);
int describe (const char* path, struct desc* desc) {
return (int)do_syscall (SYS_DESCRIBE, path, desc);
}
int mail_send (int pgid, void* mesg, size_t mesg_size) {