aboutsummaryrefslogtreecommitdiff
path: root/src/bkl.c
blob: e831451d07429ce15c3e02c4472d0ff632302f5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2024, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */

#include <kmi/lock.h>

/**
 * @file bkl.c
 *
 * Instanciation of the big kernel lock.
 */

/** The Big Kernel Lock. */
static spinlock_t bkl = 0;

void bkl_init()
{
	bkl = 0;
}

void bkl_lock()
{
	spin_lock(&bkl);
}

void bkl_unlock()
{
	spin_unlock(&bkl);
}