Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't understand how modules work. What’s the difference in compiling them into the kernel and using mod-config?
If I don't compile a module into the kernel then can I add it later by using mod-config and if so is it just added or is it built in?
I'm confused.
Can someone help me understand this stuff?
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
If you compile something into the kernel it is in there for good. It cannot be removed even if you do not use it. If you compile it in as a module it can be added or removed at any time (no reboot necessary). This is an extremely simplified answer, so if you would like a more in depth technical answer let me know.
I would like to konw how Linux load a module?
Can someone explain me what is mod-config and how it works?
What are the steps of the kernel to load a module?
Can you give me an idea (small project) to see how the kernel works when loading a module?
Thanks
Eduardo Santos
Originally posted by jeremy If you compile something into the kernel it is in there for good. It cannot be removed even if you do not use it. If you compile it in as a module it can be added or removed at any time (no reboot necessary). This is an extremely simplified answer, so if you would like a more in depth technical answer let me know.
So if I don't compile anything into the kernel, will my system still run good by just modprobing itself with the kernel auto module thing?
yeah, I was going back to the beginning to see if I could get some help from the early days. Found a few posts that were relevant (and instead of double posting or reposting) I just replied to the post that was 2 years old. Nice to see the past though, it's cool. You shoul all check it out if you have some time.
Anyway, does anyone know if I can do what I was asking? When I build a kernel, can I just make everything module and my system will still work just fine?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.