According to the man page of lsmod
the command shows “what kernel modules are currently loaded”.
I wrote a script that uses modinfo
to show what kernel object (.ko) files are actually in use:
#!/bin/sh
for i in `lsmod | awk '{print $1}' | sed -n '1!p'`; do
echo "###############################$i###############################"
echo ""
modinfo $i
echo ""
echo ""
done
Now I found out that modinfo nvidia
shows the following output:
ERROR: modinfo: could not find module nvidia
Do you guys have any explanation for this?