了解/ boot/config文件

Ric*_*son 6 linux configuration kernel linux-kernel

/boot/config-$kernel_version我看到的事情:

CONFIG_X86_TSC=y
CONFIG_CAN_TSCAN1=m
Run Code Online (Sandbox Code Playgroud)

现在,我认为这y代表了yes,这意味着选项已设定.但是怎么样m

Sat*_*ish 10

Y = Module is compiled directly in kernel. 
Run Code Online (Sandbox Code Playgroud)

注意:有些驱动程序应该在内核功能中一直就绪,没有它们系统不能像Unix domain sockets (CONFIG_UNIX)应该的那样运行Y

N = Don't compile module in kernel. do nothing. 
Run Code Online (Sandbox Code Playgroud)

注意:您可以选择是否需要它.

M = Compile module as loadable module. Kernel will load this module On **Demand**. 
Run Code Online (Sandbox Code Playgroud)

注意:M表示可加载的模块,它们不需要一直熬夜Sound Driver,您可以在播放音乐时加载.它将使您的系统更高效.