Function procfs::kernel_config
source · [−]pub fn kernel_config() -> ProcResult<HashMap<String, ConfigSetting>>
Expand description
Returns a configuration options used to build the currently running kernel
If CONFIG_KCONFIG_PROC is available, the config is read from /proc/config.gz
.
Else look in /boot/config-$(uname -r)
or /boot/config
(in that order).
Notes
Reading the compress /proc/config.gz
is only supported if the flate2
feature is enabled
(which it is by default).
The flate2 feature is currently enabled