summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
authordzwdz2022-04-15 23:42:43 +0200
committerdzwdz2022-04-15 23:42:43 +0200
commit42e4b941b70499f5cf10f41126af1634821d72d5 (patch)
tree6b56775263837b7883b7a05a7603bc59274ce05d /src/kernel/vfs/request.h
parent26849aa2b3f49cbad8be4688800667e2d89aa5db (diff)
kernel/vfs: don't hang on orphaned vfs calls
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 ce5a7fb..1e3ef60 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -13,6 +13,8 @@ enum vfs_backend_type {
struct vfs_backend {
enum vfs_backend_type type;
+ size_t potential_handlers; // 0 - orphaned
+
// only used with VFS_BACK_USER
struct process *handler;
struct process *queue;
@@ -45,3 +47,5 @@ struct vfs_request {
int vfs_request_create(struct vfs_request);
int vfs_request_accept(struct vfs_request *);
int vfs_request_finish(struct vfs_request *, int ret);
+
+void vfs_request_cancel(struct vfs_request *, int ret);