Linux kernel: Difference between revisions

imported>Tobias.bora
No edit summary
imported>Tobias.bora
No edit summary
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 `.ko` files inside a subfolder inside `$out/lib/modules/${kernel.modDirVersion}`. Now, if you want to make your module loadable inside the kernel by `modprobe`, you should do:
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:


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