mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user