diff options
author | dzwdz | 2021-09-12 13:00:20 +0200 |
---|---|---|
committer | dzwdz | 2021-09-12 13:00:20 +0200 |
commit | 625ae265cbabe76bd272e9e8f0f637635af64b23 (patch) | |
tree | 6edecc8fa0053fc4fda0d079fbc1f3bdaac6fe7e /src/kernel/syscalls.c | |
parent | e65d58357aaff7c1d05c06753538383478c1b0e9 (diff) |
vfs_request refactor pt2
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index fdf4b84..eb8da09 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -88,11 +88,11 @@ handle_t _syscall_open(const char __user *path, int len) { vfs_request_create((struct vfs_request) { .type = VFSOP_OPEN, - .open = { - .path = &path_buf[mount->prefix_len], - .path_len = len - mount->prefix_len, + .input = { + .kern = true, + .buf_kern = &path_buf[mount->prefix_len], // TODO this is unfreeable + .len = len - mount->prefix_len, }, - .caller = process_current, .backend = mount->backend, }); @@ -146,11 +146,11 @@ int _syscall_write(handle_t handle_num, const char __user *buf, int len) { if (handle->type != HANDLE_FILE) return -1; vfs_request_create((struct vfs_request) { .type = VFSOP_WRITE, - .rw = { + .input = { .buf = (userptr_t) buf, - .buf_len = len, - .id = handle->file.id, + .len = len, }, + .id = handle->file.id, .caller = process_current, .backend = handle->file.backend, }); |