summaryrefslogtreecommitdiff
path: root/src/kernel/handle.h
diff options
context:
space:
mode:
authordzwdz2022-05-06 15:00:25 +0200
committerdzwdz2022-05-06 15:00:25 +0200
commit31d654e6503229c52172d72eaa018e1f274b6d48 (patch)
tree386a9e2d98c10592fc04808d31dd1a1da784742a /src/kernel/handle.h
parentc868eb79353cf1da06c00bbd426fbf8aed7b81c9 (diff)
kernel: remove the union in `struct handle`
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r--src/kernel/handle.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/kernel/handle.h b/src/kernel/handle.h
index c7a0728..088ff93 100644
--- a/src/kernel/handle.h
+++ b/src/kernel/handle.h
@@ -15,16 +15,8 @@ enum handle_type {
struct handle {
enum handle_type type;
- union {
- // TODO consolidate backend fields
- struct {
- struct vfs_backend *backend;
- int id;
- } file;
- struct {
- struct vfs_backend *backend;
- } fs;
- };
+ struct vfs_backend *backend;
+ int file_id; // only applicable to HANDLE_FILE
size_t refcount;
};