From a89984d7200381d7b8035c48124d93105d59cf24 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 5 Jul 2022 22:51:21 +0200 Subject: kernel: initial partial pipe support --- src/kernel/handle.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/kernel/handle.h') 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; }; -- cgit v1.2.3