diff options
author | dzwdz | 2021-09-05 15:32:00 +0200 |
---|---|---|
committer | dzwdz | 2021-09-05 15:32:00 +0200 |
commit | f229b2e8a6ca840af8f3ac26cc2f412891a99a5e (patch) | |
tree | eafe7e435cc011b0b1e8cdf396f3e6b27f6a4ee3 /src/shared | |
parent | 613de4db61dd99e7d2049b0a303e167fa711030b (diff) |
root vfs: implement writing to /tty
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/vfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/vfs.h b/src/shared/vfs.h index 1d4812d..d88c424 100644 --- a/src/shared/vfs.h +++ b/src/shared/vfs.h @@ -5,8 +5,12 @@ enum vfs_op_types { VFSOP_OPEN, + VFSOP_WRITE, }; +/* currently, this struct is fully created in kernelspace + * i might add a syscall which allows a process to just pass it raw, with some + * validation - so keep that in mind */ struct vfs_op { enum vfs_op_types type; union { @@ -14,5 +18,10 @@ struct vfs_op { const char *path; int path_len; } open; + struct { + user_ptr buf; + int buf_len; + int id; // filled in by the kernel + } rw; }; }; |