summaryrefslogtreecommitdiff
path: root/Userland/modload.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-28 21:07:22 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-28 21:07:22 +0100
commita43b115a6c99881c964daa5012cd076e82a7d72f (patch)
treedbc28d95f716271b3790832f74cd8b6794b85af6 /Userland/modload.cpp
parent6b150c794a4c71e36bd1e5e545be171d0e3b45d0 (diff)
downloadserenity-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.cpp2
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");