Driver as built-in instead of module

Greg KH greg at kroah.com
Fri Mar 16 07:35:52 EDT 2018


On Fri, Mar 16, 2018 at 04:48:52PM +0530, MUHAMMED ASAD P T wrote:
 
> Do you have a pointer to the source of your driver anywhere to see if it 
> even can be built into the kernel? 
> 
> 
>   [Reply] For module, we use module_init(), I am looking for the kernel functions  for built-in driver. As a module, driver probe() gets called. 
>   When driver configured as built-in, then module_init() is not called, i.e. print in module_init() is not coming.

module_init() should work just fine.

Again, do you have a pointer to the source of your code anywhere so we
can review it to see what the problem might be?

thanks,

greg k-h



More information about the Kernelnewbies mailing list