[LTP] [PATCH 1/1] doc/ground_rules: Add Kernel features check rules

Li Wang liwang@redhat.com
Thu Jan 29 08:24:04 CET 2026


> I wonder how about .needs_kconfigs vs. needs_drivers. Do we prefer any of these?
> I suppose the rule could be .needs_drivers when nothing specific from module is
> needed, .needs_kconfigs otherwise.

Hmm, this looks only belongs to the second section.
Maybe:

  - Tristate/module feature: If the functionality is controlled by a Kconfig of
     type tristate (`tristate
<https://docs.kernel.org/kbuild/kconfig-language.html#menu-attributes>`_),
     it might be built as a module. Modules can be absent or unloaded
at runtime,
     so checking the Kconfig option alone isn’t enough. Instead of
.needs_kconfigs,
     rely on .needs_drivers or a runtime check to confirm the module is loaded.


-- 
Regards,
Li Wang



More information about the ltp mailing list