Skip to main content
1 of 5
Prabagaran
  • 215
  • 1
  • 3

All Drivers are modules. All modules are not drivers.
Modules can be inserted at runtime. Modules/Drivers are statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); } 
Prabagaran
  • 215
  • 1
  • 3