summaryrefslogtreecommitdiff
path: root/src/kernel/handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r--src/kernel/handle.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/handle.h b/src/kernel/handle.h
index 088ff93..d644521 100644
--- a/src/kernel/handle.h
+++ b/src/kernel/handle.h
@@ -9,14 +9,18 @@ enum handle_type; // forward declaration for proc.h
enum handle_type {
HANDLE_INVALID = 0,
HANDLE_FILE,
-
+ HANDLE_PIPE,
HANDLE_FS_FRONT,
};
struct handle {
enum handle_type type;
- struct vfs_backend *backend;
+ struct vfs_backend *backend; // HANDLE_FILE | HANDLE_FS_FRONT
int file_id; // only applicable to HANDLE_FILE
+ struct {
+ struct process *stuck;
+ bool wants_write; // refers to the waiting process
+ } pipe;
size_t refcount;
};