summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/num_lock.cpp
blob: aff6d60ff198765791e8598837e999739296adcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <Kernel/Devices/HID/HIDManagement.h>
#include <Kernel/Process.h>

namespace Kernel {

KResultOr<FlatPtr> Process::sys$set_num_lock(bool on)
{
    HIDManagement::the().set_num_lock(on);
    return 0;
}

}