From 613de4db61dd99e7d2049b0a303e167fa711030b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 4 Sep 2021 19:34:51 +0200 Subject: new vfs impl pt. 1: implement open() --- src/shared/vfs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/shared/vfs.h (limited to 'src/shared/vfs.h') 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; + }; +}; -- cgit v1.2.3