2013-06-20 78 views
-2

我是Linux新手,我想知道驱动程序的内部以及它如何与硬件进行交互,所以我的问题是,How the application is interacting with hardware意味着当core part会出现在图片中,它会做什么?应用程序如何在Linux中与硬件进行交互?

当该驱动程序的controller将来,以及它将如何处理由应用程序生成的请求。

什么是Firmware当它在Linux中的图片?

For eg: if i am using usb device like 
$ cat /dev/usb0.1 
then which is the core of usb(usb_storage.c) and 
which is the controller(usb_hub.c) 
and how they are related to each other. 

预先感谢..

回答

0

基本上Linux内核驱动程序提供接口,例如设备文件节点然后应用可以使用标准的读()/写()/的ioctl()来传递参数来操作的硬件。在/ proc或/ sys中提供接口也可以做到这一点。详细实现如何处理请求取决于各自的硬件规格。

相关问题