aboutsummaryrefslogtreecommitdiff
path: root/src/bkl.c
blob: 6ee58f4372f630eb79119ecd13abff5d28cf8880 (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
/* 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_lock()
{
	spin_lock(&bkl);
}

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