summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
devsw
checkpoint: write(fd,"hello\n",6) where fd is a console dev almost works
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev.h b/dev.h
new file mode 100644
index 0000000..48c6b9a
--- /dev/null
+++ b/dev.h
@@ -0,0 +1,10 @@
+struct devsw {
+ int (*d_open)(char *, int);
+ int (*d_read)(int, void *, int);
+ int (*d_write)(int, void *, int);
+ int (*d_close)(int);
+};
+
+extern struct devsw devsw[];
+
+#define CONSOLE 1