summaryrefslogtreecommitdiff
path: root/src/kernel/pipe.h
diff options
context:
space:
mode:
authordzwdz2022-07-06 19:46:35 +0200
committerdzwdz2022-07-06 19:46:35 +0200
commitcaec20e9886fd6d0437b59a9de48a7b686a2cc09 (patch)
tree2b2e06d90876168a81fdcda15029cd1a2eaffd0a /src/kernel/pipe.h
parenta89984d7200381d7b8035c48124d93105d59cf24 (diff)
kernel/pipes: read & write support
Diffstat (limited to 'src/kernel/pipe.h')
-rw-r--r--src/kernel/pipe.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/pipe.h b/src/kernel/pipe.h
new file mode 100644
index 0000000..facaaaa
--- /dev/null
+++ b/src/kernel/pipe.h
@@ -0,0 +1,7 @@
+#pragma once
+#include <kernel/proc.h>
+
+void pipe_joinqueue(struct handle *h, bool wants_write,
+ struct process *proc, void __user *pbuf, size_t pbuflen);
+
+void pipe_trytransfer(struct handle *h);