summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
authordzwdz2022-05-04 13:49:38 +0200
committerdzwdz2022-05-04 13:49:38 +0200
commit3bf07641ee5ba1c6ec56b81a7f34abe1267d3ac1 (patch)
tree2eee4442a5aba9fe3a29078a2e8187d999af83a3 /src/kernel/vfs/request.h
parent9692ed2f93777e1060837b97687509f8a22c2b60 (diff)
kernel: refcount vfs_backend
what a mess
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r--src/kernel/vfs/request.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h
index 657ae85..69dad07 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -11,6 +11,14 @@ enum vfs_backend_type {
// describes something which can act as an access function
struct vfs_backend {
+ size_t refcount;
+ /* references:
+ * struct vfs_mount
+ * struct vfs_request
+ * struct process
+ * struct handle
+ */
+
enum vfs_backend_type type;
size_t potential_handlers; // 0 - orphaned
@@ -52,3 +60,5 @@ int vfs_backend_accept(struct vfs_backend *);
int vfs_request_finish(struct vfs_request *, int ret);
void vfs_request_cancel(struct vfs_request *, int ret);
+
+void vfs_backend_refdown(struct vfs_backend *);