Skip to main content

All Drivers are modules. AllNot all modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 

All Drivers are modules. All modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 

All Drivers are modules. Not all modules are drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 
Mod Removes Wiki by Michael Mrozek
My previous answer was wrongly edited by @bahamat
Source Link
Prabagaran
  • 215
  • 1
  • 3

All Drivers are modules. Not allAll modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 

All Drivers are modules. Not all modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 

All Drivers are modules. All modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() { /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 
added 24 characters in body
Source Link
bahamat
  • 40.9k
  • 5
  • 76
  • 104

All Drivers are modules. AllNot all modules are not drivers.
Modules

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

Typical module init has

module_init(init_fn); init_fn() {  /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 

All Drivers are modules. All modules are not drivers.
Modules can be inserted at runtime. Modules/Drivers are can be 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); } 

All Drivers are modules. Not all modules are not drivers.

Modules can be inserted at runtime. Modules/Drivers can be statically compiled along with the kernel also.

Typical module init has

module_init(init_fn); init_fn() {  /* some code */ } 

The same module can be made a driver

module_init(init_fn); init_fn() { device_register(&device); /* some code */ } 
added 24 characters in body
Source Link
LawrenceC
  • 11.1k
  • 4
  • 35
  • 46
Loading
Source Link
Prabagaran
  • 215
  • 1
  • 3
Loading