Be warned that the lsmod
command lists module's name, not the module's filename. They may be different. For instance the aesni_intel
module is located in a module file aesni-intel
(hyphen, not underscore); therefore you must search for aesni-intel
in order to find the corresponding kernel configuration tag entry:
$ grep -R --include=Makefile '\baesni-intel\.o\b'
arch/x86/crypto/Makefile:obj-$(CONFIG_CRYPTO_AES_NI_INTEL) += aesni-intel.o
EDIT:
In this circumstance it may be useful the modinfo
command that it shows the module's filename:
# modinfo aesni_intel | grep filename
filename: /lib/modules/5.10.162/kernel/arch/x86/crypto/aesni-intel.ko