diff options
author | dzwdz | 2021-11-20 14:48:26 +0100 |
---|---|---|
committer | dzwdz | 2021-11-20 14:48:26 +0100 |
commit | 6caac6e940ab79960b1c1ca0e5ed8f28aa49a3a9 (patch) | |
tree | 4eb0ee06dff833a28245fc476abf4cf001e1414d /src/shared | |
parent | 99520606ebfc5fbceedfd7ac3cd405e19a778ffc (diff) |
kernel: fs_wait returns a success val; the op type is put in the struct
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/syscalls.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |