summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/vfs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/shared/vfs.h b/src/shared/vfs.h
new file mode 100644
index 0000000..1d4812d
--- /dev/null
+++ b/src/shared/vfs.h
@@ -0,0 +1,18 @@
+// requires the user_ptr type from kernel/types.h or init/types.h
+// TODO add some macro magic which prints an error when it isn't defined
+
+#pragma once
+
+enum vfs_op_types {
+ VFSOP_OPEN,
+};
+
+struct vfs_op {
+ enum vfs_op_types type;
+ union {
+ struct {
+ const char *path;
+ int path_len;
+ } open;
+ };
+};