summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
authordzwdz2021-09-12 18:02:12 +0200
committerdzwdz2021-09-12 18:02:12 +0200
commitbadde3808a8a2ef512ae52af5d91f419585e27fd (patch)
tree4c5864717f75df4ac140c881b42c18dceb5352f3 /src/kernel/vfs/request.h
parent3ea9657aaaf02709c8f216285b095af29e76491c (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.h6
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);