bus, device和driver的概念在nand driver中的執行個體

來源:互聯網
上載者:User
這是在linux2.6中採用新的sysfs管理裝置驅動時出現的概念,可以在/sys目錄下得到直觀的認識。
bus表示匯流排類型,例如i2c, ide, usb...很多用platform這種bus類型,包括mtd裝置;
device記錄裝置資源,具體到nand driver中,就是在board-osk.c中添加的struct platform_device osk5912_nand_device;
driver記錄裝置驅動操作,具體到nand driver中,就是osk-nand-flash.c中提供的probe, remove, ...等函數介面的實現。

參考文檔:
linux 2.6 device model
介紹的很清晰
blogimg.chinaunix.net/blog/upfile2/071102181442.pdf

Linux 2.6核心的裝置模型
http://www.linuxdiyf.com/bbs/viewthread.php?tid=20245

miscdevice、platform_device、platform_driver的區別??大俠指教
http://bbs.driverdevelop.com/simple/index.php?t102207.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.