summaryrefslogtreecommitdiff
path: root/src/kernel/pipe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/pipe.h')
-rw-r--r--src/kernel/pipe.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/pipe.h b/src/kernel/pipe.h
index facaaaa..9040ab1 100644
--- a/src/kernel/pipe.h
+++ b/src/kernel/pipe.h
@@ -1,7 +1,11 @@
#pragma once
#include <kernel/proc.h>
+#include <stdbool.h>
-void pipe_joinqueue(struct handle *h, bool wants_write,
+/* returns false on failure */
+bool pipe_joinqueue(struct handle *h, bool wants_write,
struct process *proc, void __user *pbuf, size_t pbuflen);
void pipe_trytransfer(struct handle *h);
+
+void pipe_invalidate_end(struct handle *h);