LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-20-2014, 09:14 PM   #1
hahacc
Member
 
Registered: Oct 2010
Posts: 93

Rep: Reputation: 1
Question how can I know whether a module is a loadable module or compiled-in module?


Hi Gurus,
Could anyone tell how can I know whether a module is a loadable module or compiled-in module? As seems lsmod will list all modules of both loadable & compiled-in.

Thanks.
 
Old 11-20-2014, 09:46 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Where did you get that idea ?. lsmod lists the currently loaded modules. Potentially loadable modules are in /lib/modules/$(uname -r)

The definitive list is the kernel config used to create the kernel.
 
1 members found this post helpful.
Old 11-21-2014, 12:59 AM   #3
hahacc
Member
 
Registered: Oct 2010
Posts: 93

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by syg00 View Post
Where did you get that idea ?. lsmod lists the currently loaded modules. Potentially loadable modules are in /lib/modules/$(uname -r)

The definitive list is the kernel config used to create the kernel.
Thanks! Then could you suggest the way to get modules compiled into kernel? Maybe only check the configuration files when compiling the kernel(make config/make menuconfig etc)?
 
Old 11-21-2014, 01:43 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Checking .config doesn't give you modules list, you can get "options", not modules names.
For example: "NVidia NForce ethernet controller driver" option gives you "forcedeth" module.

You can get built-in modules list by running
Code:
cat /lib/modules/$(uname -r)/modules.builtin

Last edited by Teufel; 11-21-2014 at 01:46 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compiled module, shows invlaid module format georgewhr Linux - Software 3 12-01-2012 01:08 AM
error: -1 Invalid module format when using insmod with module cross-compiled for arm AndrewShanks Linux - Embedded & Single-board computer 4 10-15-2007 03:50 AM
Help, loadable kernel module . ERBRMN Linux - General 3 10-13-2006 07:34 AM
ndiswrapper module not loadable quarry_06 Linux - Wireless Networking 9 08-10-2005 08:25 PM
Compiled source files. Why no loadable module? Darrell22 Linux - Newbie 4 01-30-2004 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration