mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
a43b115a6c
Kernel modules can now be unloaded via a syscall. They get a chance to run some code of course. Before deallocating them, we call their "module_fini" symbol.
16 lines
311 B
C
16 lines
311 B
C
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/Vector.h>
|
|
#include <Kernel/KBuffer.h>
|
|
|
|
typedef void* (*ModuleInitPtr)();
|
|
typedef void* (*ModuleFiniPtr)();
|
|
|
|
struct Module {
|
|
String name;
|
|
Vector<KBuffer> sections;
|
|
|
|
ModuleInitPtr module_init { nullptr };
|
|
ModuleFiniPtr module_fini { nullptr };
|
|
};
|