Drivers/Modules
From WhitixDoc
< Drivers
New to the latest version of Whitix is support for dynamically loading modules into a running kernel. This is ideal for testing new drivers and hardware. This approach also offers an easy way into kernel development, as only the headers for the kernel have to be downloaded, rather than the entire kernel itself.
Configuring your system
- This short article needs expansion or improvement. Why not help?
Hello World module
Here is a simple Hello world module, to test your module building and insertion is working fine:
#include <module.h> #include <init.h> static int HelloInit(void) { KePrint("Hello world!\n"); return 0; } ModuleInit(HelloInit);
Compile this program with ....