From 6caac6e940ab79960b1c1ca0e5ed8f28aa49a3a9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Nov 2021 14:48:26 +0100 Subject: kernel: fs_wait returns a success val; the op type is put in the struct --- src/shared/syscalls.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared') diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index 8ec1a41..b78246c 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -50,11 +50,14 @@ int _syscall_close(handle_t); handle_t _syscall_fs_fork2(void); struct fs_wait_response { + enum vfs_operation op; int len; // how much was put in *buf int capacity; // how much output can be accepted by the caller int id; // file id (returned by the open handler, passed to other calls) int offset; }; +/** Blocks until an fs request is made. + * @return 0 if everything was successful */ int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __user *res); int _syscall_fs_respond(char __user *buf, int ret); -- cgit v1.2.3