diff options
author | dzwdz | 2022-07-07 20:29:13 +0200 |
---|---|---|
committer | dzwdz | 2022-07-07 20:29:13 +0200 |
commit | e567ebeee5ea196128f15adcf30cec5dd1137f90 (patch) | |
tree | 1226f0376dbe25fd6d86524f01e6848812aee0ae /src/kernel/vfs/request.h | |
parent | bbdacaddcc25d1d137a0bb0781eba603641baa92 (diff) |
kernel: add the vfsreq_finish_short shorthand function
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r-- | src/kernel/vfs/request.h | 4 |
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); |