module_init in linux kernel

From: Xin Tong
Date: Sun Nov 13 2011 - 07:12:28 EST


When one is writing a module, are module_init and module_exit
mandatory. I understand that module_init and module_exit are just
macro which place functions in special .text area. Is there is not
module_init or module_exit defined, is there any default to take over
or the kernel will panic when the module is loaded.

Thanks

Xin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/