Linux Device Drivers, 3rd Edition

0
(0)

Linux Device Drivers, 3rd Edition
 

  • Author:Alessandro RubiniGreg Kroah-HartmanJonathan Corbet
  • Length: 640 pages
  • Edition: 3
  • Publisher: O’Reilly Media
  • Publication Date: 2005-02-14
  • ISBN-10: 0596005903
  • ISBN-13: 9780596005900
  • Sales Rank: #49576 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Device drivers literally drive everything you’re interested in–disks, monitors, keyboards, modems–everything outside the computer chip and memory. And writing device drivers is one of the few areas of programming for the Linux operating system that calls for unique, Linux-specific knowledge. For years now, programmers have relied on the classic Linux Device Drivers from O’Reilly to master this critical subject. Now in its third edition, this bestselling guide provides all the information you’ll need to write drivers for a wide range of devices.

    Over the years the book has helped countless programmers learn:

    • how to support computer peripherals under the Linux operating system
    • how to develop and write software for new hardware under Linux
    • the basics of Linux operation even if they are not expecting to write a driver

    The new edition of Linux Device Driversis better than ever. The book covers all the significant changes to Version 2.6 of the Linux kernel, which simplifies many activities, and contains subtle new features that can make a driver both more efficient and more flexible. Readers will find new chapters on important types of drivers not covered previously, such as consoles, USB drivers, and more.

    Best of all, you don’t have to be a kernel hacker to understand and enjoy this book. All you need is an understanding of the C programming language and some background in Unix system calls. And for maximum ease-of-use, the book uses full-featured examples that you can compile and run without special hardware.

    Today Linux holds fast as the most rapidly growing segment of the computer market and continues to win over enthusiastic adherents in many application areas. With this increasing support, Linux is now absolutely mainstream, and viewed as a solid platform for embedded systems. If you’re writing device drivers, you’ll want this book. In fact, you’ll wonder how drivers are ever written without it.

    Updated to cover version 2.4.x of the Linux kernel, the second edition of Linux Device Driversremains the best general-purpose, paper-bound guide for programmers wishing to make hardware devices work under the world’s most popular open-source operating system. The authors take care to show how to write drivers that are portable–that is, that compile and run under all popular Linux platforms. That, along with the fact that they’re careful to explain and illustrate concepts, makes this book very well suited to any programmer familiar with C but not with the hardware-software interface. It’s worth noting that the emphasis in the title is on “device drivers” as much as “Linux.” This book will make sense to you if you’ve never written a driver for any platform before. It helps if you have some Linux or Unix background, but even that is secondary as a prerequisite to C skill.

    For a programming text–and one concerned with low-level instructions and data structures, at that–this book is remarkably rich in prose. You’ll typically want to read this book straight through, more or less skipping the code samples, before sketching out your plan for the driver you need to write. Then, go back and pay closer attention to the sections on specific details you need to implement, like custom task queues. For coding-time details about specific system calls and programming techniques, count on the index to point you to the right passages. –David Wall

    Topics covered: Techniques for writing hardware device drivers that run under Linux kernels 2.0.x through 2.2.x. Sections show how to manage memory, time, interrupts, ports, and other details of the hardware-software interface.

    中文:

    书名:Linux设备驱动程序,第三版

    设备驱动程序可以驱动您感兴趣的所有东西,包括磁盘、监视器、键盘、调制解调器以及计算机芯片和内存之外的所有东西。为Linux操作系统编写设备驱动程序是为数不多的需要独特的、特定于Linux的知识的领域之一。多年来,程序员一直依赖于经典的 Linux设备驱动程序 从O&8217;Reilly到掌握这一关键主题。现在已经是第三版了,这本畅销指南为您提供了为各种设备编写驱动程序所需的所有信息。

    多年来,这本书帮助无数程序员学到了:

    • 如何在Linux操作系统下支持计算机外设
    • 如何在Linux下为新硬件开发和编写软件
    • Linux操作的基础知识,即使他们不希望编写驱动程序

    新版的《 Linux设备驱动程序比以往任何时候都要好。这本书涵盖了Linux内核2.6版的所有重大变化,它简化了许多活动,并包含了一些微妙的新功能,可以使驱动程序更高效、更灵活。读者将发现有关以前未介绍的重要驱动程序类型的新章节,如控制台、USB驱动程序等。

    最棒的是,你不一定非要成为一名内核黑客才能理解和欣赏这本书。您只需要了解C编程语言和一些Unix系统调用的背景知识。为了最大限度地方便使用,本书使用了功能齐全的示例,您可以在没有特殊硬件的情况下编译和运行这些示例。

    今天,Linux迅速成为计算机市场增长最快的部分,并继续在许多应用领域赢得热情的追随者。随着这种支持的增加,Linux现在绝对是主流,并被视为嵌入式系统的坚实平台。如果你正在编写设备驱动程序,你会需要这本书的。事实上,你会想知道没有它的驱动程序是怎么写的。

    更新以涵盖2.4.x版的Linux内核,即 Linux设备驱动程序对于希望让硬件设备在世界上最流行的开源操作系统下工作的程序员来说,它仍然是最好的通用、纸面装订指南。作者仔细地展示了如何编写可移植的驱动程序,即在所有流行的Linux平台上编译和运行的驱动程序。这一点,再加上他们非常仔细地解释和说明概念的事实,使这本书非常适合任何熟悉C但不熟悉硬件-软件接口的程序员。值得注意的是,如果您以前从未为任何平台编写过驱动程序,那么这本书的重点就是设备驱动程序和Linux驱动程序。如果您有一些Linux或Unix背景会有帮助,但即使是这样,作为C语言技能的先决条件,这也是次要的。

    对于一本涉及低级指令和数据结构的编程课本来说,这本书的散文非常丰富。在勾勒出您需要编写的驱动程序的计划之前,您通常希望直接通读这本书,或多或少跳过代码样例。然后,返回并更仔细地关注关于需要实现的特定细节的部分,如定制任务队列。有关特定系统调用和编程技术的编码时间详细信息,请依靠索引将您指向正确的段落。 大卫·沃尔

    涵盖的主题: 编写在Linux内核2.0.x到2.2.x下运行的硬件设备驱动程序的技术。部分介绍如何管理内存、时间、中断、端口和硬件-软件接口的其他详细信息。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册