FreeBSD Device Drivers: A Guide for the Intrepid (Paperback)

Joseph Kong

  • 出版商: No Starch Press
  • 出版日期: 2012-05-07
  • 售價: $1,860
  • 貴賓價: 9.5$1,767
  • 語言: 英文
  • 頁數: 352
  • 裝訂: Paperback
  • ISBN: 1593272049
  • ISBN-13: 9781593272043
  • 相關分類: BSD
  • 無法訂購

買這商品的人也買了...

相關主題

商品描述

Device drivers make it possible for your software to communicate with your hardware, and because every operating system has specific requirements, driver writing is nontrivial. When developing for FreeBSD, you've probably had to scour the Internet and dig through the kernel sources to figure out how to write the drivers you need. Thankfully, that stops now. In FreeBSD Device Drivers, Joseph Kong will teach you how to master everything from the basics of building and running loadable kernel modules to more complicated topics like thread synchronization. After a crash course in the different FreeBSD driver frameworks, extensive tutorial sections dissect real-world drivers like the parallel port printer driver.

You'll learn:

  • All about Newbus, the infrastructure used by FreeBSD to manage the hardware devices on your system
  • How to work with ISA, PCI, USB, and other buses
  • The best ways to control and communicate with the hardware devices from user space
  • How to use Direct Memory Access (DMA) for maximum system performance
  • The inner workings of the virtual null modem terminal driver, the USB printer driver, the Intel PCI Gigabit Ethernet adapter driver, and other important drivers
  • How to use Common Access Method (CAM) to manage host bus adapters (HBAs)

Concise descriptions and extensive annotations walk you through the many code examples. Don't waste time searching man pages or digging through the kernel sources to figure out how to make that arcane bit of hardware work with your system. FreeBSD Device Drivers gives you the framework that you need to write any driver you want, now.

商品描述(中文翻譯)

裝置驅動程式使您的軟體能夠與硬體進行通訊,由於每個作業系統都有特定的需求,因此撰寫驅動程式並不簡單。當您開發 FreeBSD 時,可能必須在網路上搜尋並查閱核心原始碼,以找出如何撰寫所需的驅動程式。幸運的是,現在這一切都將停止。在《FreeBSD 裝置驅動程式》一書中,Joseph Kong 將教您從基礎的建立和執行可載入核心模組到更複雜的主題,如執行緒同步等,讓您掌握一切。在詳細的教學部分中,您將深入剖析像是並行埠印表機驅動程式等真實世界的驅動程式。

您將學到以下內容:
- 關於 Newbus,FreeBSD 用於管理系統上硬體裝置的基礎架構
- 如何使用 ISA、PCI、USB 和其他匯流排
- 從使用者空間控制和與硬體裝置進行通訊的最佳方法
- 如何使用直接記憶體存取(DMA)以達到最佳系統效能
- 虛擬空調調制解調器驅動程式、USB 印表機驅動程式、Intel PCI Gigabit 乙太網路適配器驅動程式和其他重要驅動程式的內部運作方式
- 如何使用通用存取方法(CAM)管理主機匯流排適配器(HBA)

簡潔的描述和詳盡的註解將引導您進入許多程式碼範例。不要浪費時間在手冊頁面上搜尋或查閱核心原始碼,以找出如何使那些神秘的硬體與您的系統相容。《FreeBSD 裝置驅動程式》提供了您撰寫任何所需驅動程式的框架,現在就開始吧。