Talk:Kernel Modules

Remove section "Going completely 'module-less'" ?
This seems - prima facie - almost a little silly, but I know little about this. Are there situations this could be useful for (embedded comes to mind) ? I'm worried this might be a "ricer thing", in which case it wouldn't helping anyone to mention it...

-- Kyoreln (talk) 20:37, 12 November 2021 (UTC)


 * I'm the author that added the section several years ago. I think one needs to understand why the Linux kernel has loadable module support in the first place. Unlike some operating system kernels, in Linux all of the device drivers are part of the kernel. There are a lot of different devices out there, but any given machine needs drivers for only a tiny subset of all available devices. That becomes a big problem for distributions, if all the modules are loaded in a monolithic kernel image at all times. Thus loadable modules were introduced. It allows a distribution, like Fedora or Ubuntu, to provide a binary kernel package that contains all the drivers for the whole universe of hardware out there. On any given machine, only a subset of those drivers can be loaded. Problem solved.


 * But Gentoo is a distribution that doesn't have this problem (at least not for users building their own kernel, which is probably the vast majority of Gentoo users). The kernel configuration most often only enables those drivers that the Gentoo user knows they need on their machine. Those drivers can simply be built into the kernel. There is no reason why the Gentoo user needs to select "M" for any driver when configuring the kernel (unlike the distribution kernel maintainers that must select "M" for most drivers).


 * For the Gentoo user that configures their own kernel, if they build-in all of their device drivers (and all other kernel options they know they always want available), it makes sense to just dispense with loadable module support altogether. In a lot of cases, loadable module support will be enabled, even though no loadable modules are even built.


 * As for whether this section should be in the Wiki, I only have this to say: when I added this there was scant help anywhere else on how to do it. Since the Wiki is here to help users with system configuration so they don't have to figure out everything on their own, it seems appropriate to keep it. It doesn't harm anyone to make this information available. But removing this section would remove the possibly only source on the web that has instructions how to configure Gentoo for a system that doesn't need loadable modules.


 * -- Dmoulding (talk) 23:15, 13 November 2021 (UTC)


 * Wow, thanks for the detailed - and rapid - answer!!


 * Sorry for suggesting that this might be "silly", I really don't know much about this at all, I just worry about anything that might lead novice users down a "slippery path". The warning that is already there is surely quite sufficient then.


 * Agreed that making current information available can only help (with a warning when appropriate). Thanks again for the complete answer, anybody coming here having questions about this will benefit! :).


 * -- Kyoreln (talk) 00:07, 14 November 2021 (UTC)