LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-30-2021, 07:59 AM   #1
somanyquestions
Member
 
Registered: Jan 2019
Distribution: Ubuntu, Debian, Buildroot
Posts: 34

Rep: Reputation: Disabled
Does /proc/config.gz always contain all supported options of a kernel?


Assuming I have a running Linux system that has the /proc/config.gz file:

Does the (unpacked) file always contain all of the options the particular kernel supports, including commented out like:

Code:
#CONFIG_SOMETHING is not set
or is it possible that some options which the kernel supports do not appear at all in that file?

(the usefulness of knowing that for sure is to, perhaps, be able to do some problem hunting without currently having access to the buildroot config files that were used to create the Linux image at hand)
 
Old 07-30-2021, 08:27 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
If /proc/config.gz exists it will be the config used to build the current kernel. All config options available to that kernel build will either be selected or not.
Dependant options may (will ?) not exist if the primary option is not selected. Very few things in life are "black and white".
 
1 members found this post helpful.
Old 07-30-2021, 08:55 AM   #3
somanyquestions
Member
 
Registered: Jan 2019
Distribution: Ubuntu, Debian, Buildroot
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
If /proc/config.gz exists it will be the config used to build the current kernel. All config options available to that kernel build will either be selected or not.
Dependant options may (will ?) not exist if the primary option is not selected. Very few things in life are "black and white".

Ahh... dependent options, that makes sense!
 
  


Reply

Tags
config



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] How to find files that contain one string, but don't contain another. PatrickDickey Linux - Newbie 2 09-11-2011 06:00 AM
[SOLVED] Compile time options /proc/config.gz mlcboy01 Linux - Kernel 1 04-23-2010 02:57 AM
Boot hang after 'proc on /proc type proc (rw)' Hagoromo Slackware 13 10-05-2007 05:03 PM
Java threads listed using kill -3 does not contain all threads found using ps -auxww coneheed Programming 2 11-14-2005 08:57 AM
Command ls --color=always, can always be always Kevin Tough Linux - Newbie 1 09-08-2005 11:05 PM

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

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