diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-28 21:07:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-28 21:07:22 +0100 |
commit | a43b115a6c99881c964daa5012cd076e82a7d72f (patch) | |
tree | dbc28d95f716271b3790832f74cd8b6794b85af6 /Userland/modload.cpp | |
parent | 6b150c794a4c71e36bd1e5e545be171d0e3b45d0 (diff) | |
download | serenity-a43b115a6c99881c964daa5012cd076e82a7d72f.zip |
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.
Diffstat (limited to 'Userland/modload.cpp')
-rw-r--r-- | Userland/modload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/modload.cpp b/Userland/modload.cpp index 180f9a1a73..d0412a0fcd 100644 --- a/Userland/modload.cpp +++ b/Userland/modload.cpp @@ -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"); |