diff options
author | dzwdz | 2022-08-04 15:58:54 +0200 |
---|---|---|
committer | dzwdz | 2022-08-04 15:58:54 +0200 |
commit | 81a58004d51547d074b4218f906b0b95f2b2c5dc (patch) | |
tree | 4301047fc342e165bc5a043a04b5fed44b8e8084 /src/kernel/proc.h | |
parent | 4a844820866094ff7d57435a16b7c23a9126814d (diff) |
syscalls: add _syscall_sleep()
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r-- | src/kernel/proc.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |