![]() |
|
|
|
#1
|
|||
|
|||
|
I have worked with Driver Development Kit (DDk) tools in Windows OS. Recently I shifted to Linux OS
. But I don't know how I can write Driver in Linux. Can you tell me what is instead of that in Linux? Where is Kernel API doc in it?
|
|
#2
|
||||
|
||||
|
read the book <<Linux Device Drivers>>
__________________
AKA Solomon/blowfish. |
|
#3
|
|||
|
|||
|
As you know there is no Undocumented function in Open-Source Operating systems like linux ,that required some Development Kits , Like NT native API s.
Any one can make a linux driver using standard Linux compiler (GCC). or ... But to simplify driver works in linux you can use WinDriver bu Jungo h--p://www.jungo.com/linux.html Regards OMID |
|
#4
|
|||
|
|||
|
Hi!
some useful docs are located in Documentation folder of kernel source. And, of course, kernel source/includes are the main replacement of DDK in windows, all function calls/ids/apis are documented only there. The rest things depend on what driver are you writing. There are books about kernel VM, scheduler, lkms, and so on (some of them can be easily found by google). I myself when wrote my first drivers for Linux used other similiar driver source code (from kernel) - this is the best way, I think, since documentation is really not full and pretty old. Most of docs in net covers 2.2 or 2.4 kernels, since api in 2.6 is not stable and modyfing from version to version (e.g. usb api again changed in 2.6.5!)... |
|
#5
|
|||
|
|||
|
Or as they say... Use the source Luke...
And if that don't work, checkout hxxp://www.kernelnewbies.org/ -- which was setup specifically to answer these kinds of questions. Reading LKML (Linux Kernel Mailing List) would also be a good idea. Forgot this one.. useful for people with kernel 2.4 knowledge, but also has lotsa good info for other people: Porting device drivers to the 2.6 kernel hxxp://lwn.net/Articles/driver-porting/ and.. the historical resting place of Linux Device Drivers, Second Edition hxxp://lwn.net/Kernel/LDD2/index.lwn [EDIT JMI: Don't answer your own Posts. That's what the edit button is for!] |
|
#6
|
|||
|
|||
|
It's all there, just use it
...... maybe "Linux Device Drivers, 2nd Edition" by Alessandro Rubini and Jonathan Corbet helps. It's from O'Reilly Kerstin |
![]() |
|
|