First page Back Continue Last page Overview Graphics
Linux Kernel Loadable Modules
Linux kernel loadable modules are ELF DSO very similar to shared libraries (but of course linked against the running kernel). One can perform many of the similar tricks with LKM as with shared libraries.
The linker is in the 'insmod' command. There is some talk on lkml on moving the linker inside the kernel.
I'm leaving how to accomplish the functionality of LD_PRELOAD with LKMs as an exercise to the intelligent listener... :-)