summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-08-04 15:58:54 +0200
committerdzwdz2022-08-04 15:58:54 +0200
commit81a58004d51547d074b4218f906b0b95f2b2c5dc (patch)
tree4301047fc342e165bc5a043a04b5fed44b8e8084 /src/kernel/proc.h
parent4a844820866094ff7d57435a16b7c23a9126814d (diff)
syscalls: add _syscall_sleep()
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 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;