summaryrefslogtreecommitdiff
path: root/kernel/fs/tmpfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/tmpfs.h')
-rw-r--r--kernel/fs/tmpfs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/fs/tmpfs.h b/kernel/fs/tmpfs.h
new file mode 100644
index 0000000..4052bd5
--- /dev/null
+++ b/kernel/fs/tmpfs.h
@@ -0,0 +1,16 @@
+#ifndef TMP_H
+#define TMP_H
+#include <fs/fifo.h>
+#include <fs/vfs.h>
+
+#define TMP_BUFFER_SIZE (1024 * 10)
+
+typedef struct {
+ FIFO_FILE *fifo;
+ uint8_t is_closed;
+ vfs_inode_t *read_inode;
+} tmp_inode;
+
+void pipe(int fd[2]);
+void dual_pipe(int fd[2]);
+#endif