diff options
author | dzwdz | 2021-09-08 19:40:58 +0200 |
---|---|---|
committer | dzwdz | 2021-09-08 19:40:58 +0200 |
commit | 67c847f8660ed73db1017f2ca8b01bfe4eb9ba1b (patch) | |
tree | 8750f5ff8d20975b420cd8593e05ff288b1ed150 /src/kernel/syscalls.c | |
parent | 2f48f3c88c11c802a1dfc9d803b1d9715cb95b33 (diff) |
scaffolding for user fs dispatch
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index d2217eb..ddc3d4b 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -179,6 +179,9 @@ handle_t _syscall_fs_create(user_ptr back_user) { backend = kmalloc(sizeof(struct vfs_backend)); // TODO never freed backend->type = VFS_BACK_USER; + backend->handler = NULL; + backend->queue = NULL; + process_current->handles[front].fs.backend = backend; process_current->handles[back ].fs.backend = backend; |