What will ensue from/on a driver written documents such as my following all these documents are from a driver why should a driver file so much ah
CodePudding user response:
Generally compiled Linux driver. Ko file, dynamically loaded into the kernel, can also be statically compiled into the kernel, the driver file to do all kinds of interface function, so there are several documents
CodePudding user response:
Estimates made simple driver layering
CodePudding user response:
refer to the second floor fog oasis response: estimates made simple driver layered bosses I this is the software driver CodePudding user response:
reference 1st floor definecj response: Linux drivers generally compiled. Ko file, dynamically loaded into the kernel, can also be statically compiled into the kernel, the driver file to do all kinds of interface function, so there are several files this is a Windows driver CodePudding user response:
C language, with to drive You write a function should know to can't write too long, according to the functional division of function File is the same, a file is a function or direction, Some code is directly operating hardware, some of them are based on the hardware operation, if such separate written more inferentially, Cannot be stacked all the code to a file inside the CodePudding user response:
In principle and drivers do not have what relation, and the complexity of the chips, You may write a thermostat chip driver just need a file and a c h file is ok, But a switch chip, if you just write a file and a c h file, estimates that no one can endure the, Complex chip driver need to require multiple files or even multiple folders, You are such a pretty simple chip, CodePudding user response:
Because the drive the authors think that train of thought is simple, Can change to a c file, h don't have to, but this way of thinking and the code will be chaos, CodePudding user response:
Can produce PE file, the entry is DriverEntry function, general use. Sys as extension, as to how many files, you can write in the same file is done, CodePudding user response:
Eldest brother, you don't have a compiler, CodePudding user response:
This is not your driver problem, small white pure engineering,