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/shared/vfs.h | |
parent | c4531fa5e1aa16b7ba74de2975eadf06b3052b78 (diff) |
new vfs impl pt. 1: implement open()
Diffstat (limited to 'src/shared/vfs.h')
-rw-r--r-- | src/shared/vfs.h | 18 |
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; + }; +}; |