驱动程序编程 [英] Driver programming

查看:92
本文介绍了驱动程序编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个问题,希望您能回答....

我的问题是:

我如何开始写一个简单的程序,在内核级别工作(仅仅是一个简单的程序)?我可以使用哪些好的资源来学习驱动程序开发或编程?

请注意,代码应在C/C ++编程中进行
非常感谢您的时间,我正在等待您的答复.

Hello everyone, I have aquestion and i hope to be answered by you ....

My question is :

How I can start to write a simple program works in kernal level ( just a simple one )? And what are the good resouces can i use to learn driver development or programming ?

Note the code should be in C/C++ programming
Thank you so much for your time and i am waiting for your answers.

推荐答案

Toby Opferman撰写了有关CodeProject的一系列文章.从这里开始:

http://www.codeproject.com/KB/system/driverdev.aspx [ ^ ]
There is a series of articles on CodeProject by Toby Opferman. Start here:

http://www.codeproject.com/KB/system/driverdev.aspx[^]


如果对于使用Linux是开放的,我建议从O''Reilly出版的Linux Device Drivers中的hello world程序开始.可在
免费获得
http://lwn.net/Kernel/LDD3/ [
If you are open to using Linux, I would suggest starting with the hello world program in Linux Device Drivers by O''Reilly publishing. It is available free at

http://lwn.net/Kernel/LDD3/[^]

It may seem trivial to get a hello world program running, but, in my experience, this hello world required me to do a fair amount of programming environment configuration from the default...so, I think a beginner gain a lot from it.


我怀疑是否存在诸如在内核中运行的简单程序之类的东西.内核编程要比应用程序编程复杂得多,对于初学者来说当然不是一个好地方-除非您喜欢定期查看BSOD.
I doubt that there is such a thing as a simple program that works in the kernel. Kernel programming is far more complex than application programming and certainly not a good place for a beginner - unless you enjoy seeing BSOD at regular intervals.


这篇关于驱动程序编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆