From badde3808a8a2ef512ae52af5d91f419585e27fd Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 12 Sep 2021 18:02:12 +0200 Subject: 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 --- src/kernel/vfs/request.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/request.h') 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); -- cgit v1.2.3