Operating System - Linux
1824976 Members
3887 Online
109678 Solutions
New Discussion юеВ

how to know the kernel features are enabled or disabled

 
Ming Zhao
Advisor

how to know the kernel features are enabled or disabled

Hi,

I am working on a RHEL3.0 without source code installed. Application team asked me to check if some kernel features are enabled:
COFNIG_NET
CONFIG_SYSVIPC
CONFIG_BINFMT_ELF
etc..

How to know if they are enabled or disabled.

Thanks,
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: how to know the kernel features are enabled or disabled

Short of viewing the compiled-in '.config', (see /boot/config-2.4.xxxxx) some of them can be sorta difficult to figure out.

Short answers for the 3 listed:

If you have networking (at all), then CONFIG_NET is configured in.

If you can run most executables, CONFIG_BINFMT_ELF is configured in.

CONFIG_SYSVIPC will be compiled in, as it provides compatability with previous versions of SYS V IPC (Inter-Process communications). It's highly unlikely this one isn't compiled in.
One long-haired git at your service...
Muthukumar_5
Honored Contributor

Re: how to know the kernel features are enabled or disabled

Hai,

Kernel configuration settings are updated in the .config file. Features enablement uses "y" "n" or "m". Where

y - it is enabled
n - it is not enabled
m - modularised one

By default,

COFNIG_NET
CONFIG_SYSVIPC
CONFIG_BINFMT_ELF options are enabled.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Jan Sladky
Trusted Contributor

Re: how to know the kernel features are enabled or disabled

hi Ming,

perhaps "sysctl -a" will also be little usefull for your purposes, for more info see man sysctl

Hope this will help you

br Jan
GSM, Intelligent Networks, UNIX
Muthukumar_5
Honored Contributor

Re: how to know the kernel features are enabled or disabled

Hai,

sysctl will be used to get the system control configuration settings. We can not ge t the kernel parameters with that.

.config file we be the source to know this. Default kernel's config will be located at /usr/src/linux-2.x.x/configs directory.
We can identify the kernel type and it's related .config file from grub loader or lilo loader.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Ming Zhao
Advisor

Re: how to know the kernel features are enabled or disabled

Thanks everybody!