KBUILD_MODNAME - how is it set?
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?
Thanks
|