summaryrefslogtreecommitdiff
path: root/src/kernel/handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r--src/kernel/handle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/handle.h b/src/kernel/handle.h
index aae8937..0bf0f33 100644
--- a/src/kernel/handle.h
+++ b/src/kernel/handle.h
@@ -1,5 +1,6 @@
#pragma once
#include <kernel/types.h>
+#include <kernel/vfs/mount.h>
#include <stddef.h>
#define HANDLE_MAX 16
@@ -8,8 +9,15 @@ typedef int handle_t; // TODO duplicated in syscalls.h
enum handle_type {
HANDLE_EMPTY,
+ HANDLE_FILE,
};
struct handle {
enum handle_type type;
+ union {
+ struct {
+ struct vfs_backend *backend;
+ int id;
+ } file;
+ };
};