Change of Ⅰ and drive
Linux kernel source version before 2.4, the driver is to directly define a Xx.ko, and then the Linux system insmod this personality module can be loaded into the kernel, you can drive their own code, only one: driver. C
Linux kernel version after 2.6, an advanced Linux model was introduced:
1. Linux Device bus---------------------------------------------------
| |
| |
2, equipment 3, drive
Ⅱ, (. ko)----------drive modules and kernel modules
Xx.ko >>> kernel module, but not necessarily the driver module-----Drive module must be a kernel module, that is, the kernel module does not necessarily have a driver function.
The difference between a kernel module and a drive module:
Same point: Kernel modules are executed inside the kernel, and the driver is the same
Different points: The kernel module is not necessarily powered by the drive device
and the drive module is used to drive the device
------kernel modules that need to be recognized in Linux-based production drive processes