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/proc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 93044d2..eb5bd6b 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -14,6 +14,7 @@ enum process_state { PS_WAITS4CHILDDEATH, PS_WAITS4FS, PS_WAITS4REQUEST, + PS_WAITS4PIPE, PS_LAST, }; @@ -42,6 +43,11 @@ struct process { size_t max_len; struct fs_wait_response __user *res; } awaited_req; // PS_WAITS4REQUEST + struct { + struct handle *pipe; + char __user *buf; + size_t len; + } waits4pipe; }; struct vfs_request *handled_req; -- cgit v1.2.3