summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/backend.h')
-rw-r--r--src/kernel/vfs/backend.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/kernel/vfs/backend.h b/src/kernel/vfs/backend.h
deleted file mode 100644
index bc0dc45..0000000
--- a/src/kernel/vfs/backend.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma once
-#include <shared/vfs.h>
-
-enum vfs_backend_type {
- VFS_BACK_ROOT,
- VFS_BACK_USER,
-};
-
-// describes something which can act as an access function
-struct vfs_backend {
- enum vfs_backend_type type;
-
- // only used with VFS_BACK_USER
- struct process *handler;
- struct process *queue;
-};
-
-// describes an in-progress vfs call
-struct vfs_op_request {
- struct vfs_op op;
- struct process *caller;
- struct vfs_backend *backend;
-};
-
-
-// these can switch processes
-_Noreturn void vfs_backend_dispatch(struct vfs_backend *backend, struct vfs_op op);
-_Noreturn void vfs_request_pass2handler(struct vfs_op_request *);
-_Noreturn void vfs_backend_finish(struct vfs_op_request *, int ret);