diff options
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 *); |