LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-20-2007, 05:16 PM   #1
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
listing kernel drivers


I could do 'lsmod' to see which drivers are used and loaded as modules. Is there analog command allowing to see which drivers are build in the kernel, and also used? I mean when I configure kernel I specify [Y]/[M] for a specific driver, if the driver is part of the kernel, e.g. [Y] option, will it show up in 'lsmod' list. Is there a way to see all the drivers which are compiled to the kernel and available for possible use? Is .config part of the compiled kernel?
 
Old 02-20-2007, 05:52 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Usually, the .config used to build the kernel is supposed to be copied to /boot along with the actual kernel itself. So you should be able to grep the contents of it with a command like:

Code:
grep "y" /boot/config-2.6.16
(or whatever your .config is named under /boot)

As for an actual command to pull the same information from the kernel, I don't think there is one. At least, none that I am aware of.

I know that one of the kernel options allows the .config file to actually be built into the kernel, which can then be extracted with a tool or by reading from /proc. But I don't know when this option was added to the kernel, and now many distributions even use the function.
 
Old 02-20-2007, 06:20 PM   #3
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
There is nothing in the /boot directory even no kernel (sic!). The system is using OpenBIOS which boots kernel from predefined address in the flash.

I saw the option to include .config in 2.6 kernel, don't remember seeing it in 2.4 (but I didn't look thoroughly back then), but it sure would have been nice to have a single command to pull out "[Y]/[M]" info from the kernel.
 
Old 02-20-2007, 06:41 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Have a look for /proc/config.gz
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper Steps to clean up Kernel Listing in GRUB mrkawphy Linux - Newbie 3 08-08-2006 12:16 AM
Directory listing using kernel calls smoothny Programming 5 03-31-2006 03:18 PM
Listing Kernel parameters ALMAM Linux - Newbie 7 07-27-2005 04:42 PM
Listing kernel modules in a terminal brunnopessoa Fedora 3 10-12-2004 06:58 PM
Listing my installed Kernel Modules. mudelf Linux - General 1 11-06-2003 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:23 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