magic macro in module.h what ((struct module*)0) is ?
Hi all
I am Newbie to linux kernel but try to trace and understand it .
when I look at usb related code in linux kernel . I found one interesting macro in module.h as following .
#ifdef MODULE
#define MODULE_GENERIC_TABLE(gtype,name) \
extern const struct gtype##_id __mod_##gtype##_table \
__attribute__ ((unused, alias(__stringify(name))))
extern struct module __this_module;
#define THIS_MODULE (&__this_module)
#else /* !MODULE */
#define MODULE_GENERIC_TABLE(gtype,name)
#define THIS_MODULE ((struct module *)0)
#endif
if I define MODULE , I can find __this_module some where in ohci-hcd.mod.c or ehci-hcd.mod.c else .
my question is what ((struct module*)0) is if I do not define MODULE ?
have never seen ((struct module*)0) before . hard to image about it .
Thanks
Kevin ...
|