summaryrefslogtreecommitdiff
path: root/Kernel/Modules/TestModule.cpp
blob: 831cdddc35148b32e9cbc87f5d82a3ee4485c5c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <AK/Format.h>
#include <Kernel/Modules/module_syms.h>

extern "C" const char module_name[] = "TestModule";

extern "C" void module_init()
{
    dmesgln("TestModule has booted!");

    for (int i = 0; i < 3; ++i) {
        dmesgln("i is now {}", i);
    }
}

extern "C" void module_fini()
{
    dmesgln("TestModule is being removed!");
}