summaryrefslogtreecommitdiff
path: root/sys/include/spinlock.h
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-08 20:42:18 -0400
committerstefan <stefan@s00.xyz>2023-04-08 20:42:18 -0400
commit1aac36f788834699b6891aea7a83eb950bd5e8f6 (patch)
tree18e0a6c26b83e71c101193e60149f49b1641daf0 /sys/include/spinlock.h
parenta1a97aa7b2b0c3d1f3b6766446d605f83de1c561 (diff)
downloadsv-1aac36f788834699b6891aea7a83eb950bd5e8f6.tar.gz
no idea whot i changed lol
Diffstat (limited to 'sys/include/spinlock.h')
-rw-r--r--sys/include/spinlock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/include/spinlock.h b/sys/include/spinlock.h
new file mode 100644
index 0000000..3400445
--- /dev/null
+++ b/sys/include/spinlock.h
@@ -0,0 +1,11 @@
+#ifndef _LOCK_H
+#define _LOCK_H
+
+struct spinlock {
+ int locked;
+ const char *name;
+};
+
+void initlock(struct spinlock *, const char *);
+
+#endif /* _LOCK_H */