2013-06-20 76 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中提供接口也可以做到這一點。詳細實現如何處理請求取決於各自的硬件規格。

相關問題