chap 3-字元装置驱动程式.ppt

chap 3-字元装置驱动程式

Chap 3-字元裝置驅動程式 Outline Introduction 3.1 scull的設計藍圖 3.2 主編號與次編號 3.3 檔案架構 3.4 file 結構 3.5 open 與 release 3.6 Scull 的記憶體用法規劃 3.7 相競狀況 3.8 read 與 write 3.9 try scull 3.10 devfs 檔案系統 3.11 回溯相容性 3.12 速查參考 3--Introduction 本章目標:寫出一個完整的字元裝置驅動程式(char device driver)--簡稱char driver 終極目標:寫出一個模組化的char driver 範例:scull--( Simple Character Utility for Loading Localities ) Makefile, main.c, access.c, empty.c, pipe.c, scull.h, scull.init, scull_load, scull_unload, alpha.checkthem scull的作用是“讓使用者可把一塊記憶區當成字元裝置來使用”?scull所驅動的目標裝置是一塊記憶區 不需依賴任何“特殊”硬體 只要有linux平台就可以編譯與執行 未提供任何實用功能,只展示核心與char driver之間軟體介面 3.

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档