Linux kernel: Difference between revisions

imported>Tobias.bora
No edit summary
imported>Mic92
Line 124: Line 124:
== Load modules in the kernel ==
== Load modules in the kernel ==


As far as I understand, if you developped a kernel module, you should end up with having some <code>.ko</code> files inside a subfolder inside <code>$out/lib/modules/${kernel.modDirVersion}</code>. Now, if you want to make your module loadable inside the kernel by <code>modprobe</code>, you should do:
As far as I understand, if you developed a kernel module, you should end up with having some <code>.ko</code> files inside a subfolder inside <code>$out/lib/modules/${kernel.modDirVersion}</code>. Now, if you want to make your module loadable inside the kernel by <code>modprobe</code>, you should do:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>