I am writing a driver code for first time. I have checked many resources which state that the initialization function for a kernel module is either init_module() or any another function that is specified using MODULE_INIT() macro. And this initialization function is called when a kernel module is loaded.
But I could not find any information about what happens when initialization function doesn't exist in a Loadable kernel module and is tried to load.
What would be the scenario if the kernel module is in-tree and doesn't have initialization function??
---Thanks in advance..