diff options
author | dzwdz | 2022-05-04 13:49:38 +0200 |
---|---|---|
committer | dzwdz | 2022-05-04 13:49:38 +0200 |
commit | 3bf07641ee5ba1c6ec56b81a7f34abe1267d3ac1 (patch) | |
tree | 2eee4442a5aba9fe3a29078a2e8187d999af83a3 /src/kernel/vfs/request.h | |
parent | 9692ed2f93777e1060837b97687509f8a22c2b60 (diff) |
kernel: refcount vfs_backend
what a mess
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r-- | src/kernel/vfs/request.h | 10 |
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 *); |