aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-17 02:58:20 -0400
committerIan Moffett <ian@osmora.org>2025-04-17 02:58:20 -0400
commite30fcbe3822ab740cef6ff2584dd0a1429ab10a5 (patch)
treee43512298ed3375d0dd701f02f8f9ccdf489ef51 /sys/include
parent53c172acbb921adfc28bea1cabf8ac983c7ecebd (diff)
kernel: synch: Add system-wide locking
Add system-wide locking for critical code sections. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/spinlock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/spinlock.h b/sys/include/sys/spinlock.h
index b416152..140addc 100644
--- a/sys/include/sys/spinlock.h
+++ b/sys/include/sys/spinlock.h
@@ -44,6 +44,9 @@ void spinlock_release(struct spinlock *lock);
int spinlock_try_acquire(struct spinlock *lock);
int spinlock_usleep(struct spinlock *lock, size_t usec_max);
+/* System-wide locking (be careful!!) */
+int syslock(void);
+void sysrel(void);
#endif
#endif /* !_SYS_SPINLOCK_H_ */