diff options
author | dzwdz | 2021-09-12 18:02:12 +0200 |
---|---|---|
committer | dzwdz | 2021-09-12 18:02:12 +0200 |
commit | badde3808a8a2ef512ae52af5d91f419585e27fd (patch) | |
tree | 4c5864717f75df4ac140c881b42c18dceb5352f3 /src/kernel/vfs/request.h | |
parent | 3ea9657aaaf02709c8f216285b095af29e76491c (diff) |
allow vfs_request_finish to return
thanks to this, the fs provider can continue executing until the next
fs_wait() call. that should speed things up a bit
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r-- | src/kernel/vfs/request.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index 52af544..8f5cf92 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -45,6 +45,8 @@ struct vfs_request { struct vfs_backend *backend; }; -_Noreturn void vfs_request_create(struct vfs_request); +/** Assigns the vfs_request to the caller, and calls the backend. Might not + * return - can switch processes! */ +int vfs_request_create(struct vfs_request); _Noreturn void vfs_request_pass2handler(struct vfs_request *); -_Noreturn void vfs_request_finish(struct vfs_request *, int ret); +int vfs_request_finish(struct vfs_request *, int ret); |