Kernel: Implement very simple kernel module loading

It's now possible to load a .o file into the kernel via a syscall.
The kernel will perform all the necessary ELF relocations, and then
call the "module_init" symbol in the loaded module.
This commit is contained in:
Andreas Kling 2019-11-28 20:59:11 +01:00
commit 6b150c794a
Notes: sideshowbarker 2024-07-19 11:02:28 +09:00
11 changed files with 198 additions and 3 deletions

View file

@ -35,3 +35,10 @@ private:
};
#endif // __cplusplus
__BEGIN_DECLS
int module_load(const char* path, size_t path_length);
int module_unload(const char* name, size_t name_length);
__END_DECLS