summaryrefslogtreecommitdiff
path: root/kernel/include/lib/klib.h
diff options
context:
space:
mode:
authorIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-20 15:01:19 -0400
committerIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-20 15:01:19 -0400
commit1171987335034631d6e354b2d28682ad5c53dac6 (patch)
tree4e11513e3a983fabcc27763682510b9b9c177f98 /kernel/include/lib/klib.h
parentread BARs from PCI (diff)
downloadcomus-1171987335034631d6e354b2d28682ad5c53dac6.tar.gz
comus-1171987335034631d6e354b2d28682ad5c53dac6.tar.bz2
comus-1171987335034631d6e354b2d28682ad5c53dac6.zip
add rudimentary sleeping function based on CMOS clock
Diffstat (limited to 'kernel/include/lib/klib.h')
-rw-r--r--kernel/include/lib/klib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/include/lib/klib.h b/kernel/include/lib/klib.h
index e009b3b..e79af41 100644
--- a/kernel/include/lib/klib.h
+++ b/kernel/include/lib/klib.h
@@ -310,4 +310,11 @@ void *krealloc(void *ptr, size_t size);
*/
void kfree(void *ptr);
+/*
+ * Calls unixtime over and over until a number of seconds have passed
+ *
+ * @param seconds - number of seconds to wait, minimum (may take longer)
+ */
+void kspin_sleep_seconds(size_t seconds);
+
#endif /* klib.h */