Article 4VVPG KBUILD_MODNAME - how is it set?

KBUILD_MODNAME - how is it set?

by
mra90
from LinuxQuestions.org on (#4VVPG)
Hi,

I noticed "lspci -v" shows module/driver names that doesn't exist in the module source code. I have figured out that these names are registered via "__pci_register_driver(driver, THIS_MODULE, KBUILD_MODNAME);"
And here is my question, how and where is KBUILD_MODNAME assigned with proper name?

I grep for KBUILD_MODNAME in the module source directory and I found it is being assigned to proper name in some .cmd file but these I created after compilation. So where is it done in the first place?

Thankslatest?d=yIl2AUoC8zA latest?i=zQzsXQy7YDc:EiqHd6SNlFo:F7zBnMy latest?i=zQzsXQy7YDc:EiqHd6SNlFo:V_sGLiP latest?d=qj6IDK7rITs latest?i=zQzsXQy7YDc:EiqHd6SNlFo:gIN9vFwzQzsXQy7YDc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments