The difference and function of various documents:
1, for. so files
The. So file is a dynamic link library for the user layer that is used for dynamic linking of the user layer, and the kernel-state code is also not directly accessible.
2. For. ko files
Obj-m = *.O
Obj-y = *.O
The difference between the two above is that the former will generate a KO file, the latter is only the code compiled into the kernel, does not generate KO files.
. ko files are kernel-state dynamic link libraries that are used for dynamic linking of kernel states and can be used for inter-core invocation of modules. The code of the user state cannot call the kernel-state code directly, but it can communicate in other ways.
3, for. a Files
. A files are static libraries used when using static links.
4. For. o Files
The. o file is the target file, compiled and generated, and. A files are generated by the. o File package.
The difference between. So,. Ko, and. A under Linux