diff options
author | dzwdz | 2021-09-04 19:34:51 +0200 |
---|---|---|
committer | dzwdz | 2021-09-04 19:34:51 +0200 |
commit | 613de4db61dd99e7d2049b0a303e167fa711030b (patch) | |
tree | 84b577c30aac3ac7f8360fcc7aa78f7d29479538 /src/kernel/handle.h | |
parent | c4531fa5e1aa16b7ba74de2975eadf06b3052b78 (diff) |
new vfs impl pt. 1: implement open()
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r-- | src/kernel/handle.h | 8 |
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; + }; }; |