mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 01:57:54 +00:00
e05076a0c9
It's time to duel and finish the Cloud native course.
1.4 KiB
1.4 KiB
Linux kernel options
- Gentoo wiki page on kernels
- Linux also has official documentation on kernel.org and tldp.org
- the kernel is large today, most of which can be configured to be compiled or not; there is a default configuration when compiling the kernel
-
most of the features you would expect can be included
- run ELF binaries
- various filesystem support
- virtualization support
- Android drivers
- debugging options for kernel hacking
- pseudo-filesystems
- most drivers for common hardware (e.g., LED, USB, and network devices)
- special hardware drivers (e.g., Steam controller, Nintendo Wii)
- most of the options can be configured either to be included inside of the kernel image or as an external module
-
most of the features are available as kernel options
CONFIG_HID_GENERIC
enables support for generic devices such as mice, keyboards, joysticks- you can know what compile options is included from the kernel with
/proc/config.gz
but only ifCONFIG_IKCONFIG_PROC
is included CONFIG_HID_BATTERY_STRENGTH
enables reporting battery strength
- you can know what kernel options of the compiled kernel by looking at
/proc/config.gz
(e.g.,gunzip --stdout /proc/config.gz | bat
); though, it is only possible if compiled withCONFIG_IKCONFIG_PROC
option.