summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-07-05 22:51:21 +0200
committerdzwdz2022-07-05 22:51:21 +0200
commita89984d7200381d7b8035c48124d93105d59cf24 (patch)
tree01e788518dca3c5cdb269e82b6a272612ab51970 /src/kernel/proc.h
parentb16ab3edc8d3f3d5bcbe0afc8dec3e9ed822a224 (diff)
kernel: initial partial pipe support
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h6
1 files changed, 6 insertions, 0 deletions
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;