summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r--src/kernel/vfs/request.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h
index 35173ca..7d36a5d 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -61,6 +61,10 @@ struct vfs_request {
void vfsreq_create(struct vfs_request);
void vfsreq_finish(struct vfs_request*, int ret, int flags, struct process *handler);
+static inline void vfsreq_finish_short(struct vfs_request *req, int ret) {
+ vfsreq_finish(req, ret, 0, NULL);
+}
+
/** Try to accept an enqueued request */
void vfs_backend_tryaccept(struct vfs_backend *);
void vfs_backend_user_accept(struct vfs_request *req);