1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 18:25:06 +00:00

Kernel: Have modules export their name in a "module_name" string

This will show up in /proc/modules, and is also the name you can pass
to the module_unload() syscall for unloading the module.
This commit is contained in:
Andreas Kling 2019-11-29 21:31:17 +01:00
parent 86c61218a7
commit ef32c71683
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,8 @@
#include <Kernel/kstdio.h>
#include <Kernel/Process.h>
extern "C" const char module_name[] = "TestModule";
extern "C" void module_init()
{
kprintf("TestModule has booted!\n");