summaryrefslogtreecommitdiff
path: root/src/kernel/pipe.h
blob: 9040ab1044316c78cdf8a63ddafd0f67ad5c5a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include <kernel/proc.h>
#include <stdbool.h>

/* 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);