From 81a58004d51547d074b4218f906b0b95f2b2c5dc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 15:58:54 +0200 Subject: syscalls: add _syscall_sleep() --- 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 d6f84bd..fb14e35 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -15,6 +15,7 @@ enum process_state { PS_WAITS4FS, PS_WAITS4REQUEST, PS_WAITS4PIPE, + PS_WAITS4TIMER, PS_LAST, }; @@ -46,6 +47,11 @@ struct process { size_t len; struct process *next; } waits4pipe; + struct { + /* managed by timer_schedule */ + uint64_t goal; + struct process *next; + } waits4timer; }; struct vfs_request *handled_req; -- cgit v1.2.3