aboutsummaryrefslogtreecommitdiff
path: root/src/bkl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bkl.c')
-rw-r--r--src/bkl.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/bkl.c b/src/bkl.c
index aa7bd53..6ee58f4 100644
--- a/src/bkl.c
+++ b/src/bkl.c
@@ -9,4 +9,15 @@
* Instanciation of the big kernel lock.
*/
-spinlock_t bkl = 0;
+/** The Big Kernel Lock. */
+static spinlock_t bkl = 0;
+
+void bkl_lock()
+{
+ spin_lock(&bkl);
+}
+
+void bkl_unlock()
+{
+ spin_unlock(&bkl);
+}