Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在android中,我们可以将Wifi驱动程序作为模块或内置内核提供,它们之间有什么区别。以及如何选择它们?
对于模块,您需要手动加载它insmod才能使用它。 然后您可以使用lsmod.
insmod
lsmod
由于它内置在驱动程序中,系统会在系统启动时自动加载它。
您可以在 menuconfig 中构建 linux 内核时选择它们。您是否希望将其内置到内核中。
在android中,当您转到设置并选择打开wifi时,wifi模块会加载到系统中。当您选择关闭它时,它会通过调用类似的函数来移除 wifi 模块rmmod。
rmmod