Kernel build system defines KBUILD_MODNAME automatically from each Makefile.
You can easily find below string from build command of each files of modules.
-D"KBUILD_MODNAME=KBUILD_STR(xxxxx)" ('xxxxx' is given module name)
This name xxxxx comes from Makefile.
Below is simple example.
[ in Makefile ] xxxxx-y := a.o b.o c.o d.o
In above case, KBUILD_MODNAME of a.c, b.c, c.c and d.c becomes xxxxx.
This can be easily confirmed by checking command line of each objects - a.o, b.o, c.o and d.o.
'Domain > Kernel' 카테고리의 다른 글
Compile linux kernel module for ARM - "unknown relocation: 27" (0) | 2014.01.24 |
---|---|
Ext4 에 대한 분석 <Analysis regarding Ext4> (1) | 2012.06.12 |
[Kernel] Analyzing linux kernel Oops report easily... (0) | 2011.12.15 |
[Kernel] SMP and IRQ - case (2011-Sep) (0) | 2011.09.23 |
[Kernel] Potential bug for using jiffies - ex. schedule_timeout() - at Linux kernel. (0) | 2011.08.18 |