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:
parent
86c61218a7
commit
ef32c71683
2 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue