在Linux环境中编写程序仿真驱动程序 [英] Write program emulating drivers in Linux environment

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

问题描述

大家好,

1./我想知道" SetupDiGetClassDevs "在 linux环境中如何工作?
2./如果确实不起作用,那么您知道一个函数可以在linux中使用吗(开放源代码).
3./如果无法解决1和2,请告诉我一些写函数的方法.

如果有人知道答案,请帮帮我.
任何帮助将不胜感激.在此先感谢您.

注意:
SetupDiGetClassDevs是在Windows环境中使用的 setupapi.h 中的api.
在Windows中进行编程时,我们已经拥有了.但是在linux中,它必须使其他的可能成功运行,但我不知道.

Hi everyone,

1./ I wonder how the "SetupDiGetClassDevs" works in the linux environment?
2./ And if it really doesn''t work then do you know a function be like that is available in linux (open sourcecode).
3./ If 1 and 2 is not be solved then please show me some ways to write a function be the same.

If someone know the answers, please help me out.
Any help will be appreciated. Thanks in advanced.

Note:
SetupDiGetClassDevs is the api in the setupapi.h using in the windows environment.
And when programming in windows, we have it already. But in linux it must have the others might work successfully but I don''t know.

推荐答案

如果您打算为Linux编写代码,那么您需要忘记您对Windows的所有了解.这两个操作系统完全不同,并且使用不同的系统调用和结构.可以在Linux网站上找到许多适用于Linux的文档,开发指南,甚至是完整的源代码.
If you are planning to write code for Linux then you need to forget everything you know about Windows. The two Operating Systems are quite different and use different system calls and structures. There is lots of documentation, development guides and even the complete source code, available for Linux, which you can find on the Linux web site(s).


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

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