mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Implement basic module unloading :^)
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.
This commit is contained in:
parent
6b150c794a
commit
a43b115a6c
6 changed files with 43 additions and 14 deletions
|
@ -5,7 +5,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
const char* path = "/TestModule.o";
|
||||
const char* path = "/mod/TestModule.o";
|
||||
int rc = module_load(path, strlen(path));
|
||||
if (rc < 0) {
|
||||
perror("module_load");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue