LINUX设备驱动程序 (影印版·第3版) - 科比特

LINUX设备驱动程序 (影印版·第3版)

科比特

出版时间

2005-06-01

ISBN

9787564100445

评分

★★★★★
书籍介绍
本书揭示了如何给大多数的设备编写驱动程序的信息,这些信息迄今仅通过口头或者隐晦的源代码注释被共享。你不必是一个内核高手就可以理解并享受本书,所需要的只是C以及Unix系统调用方面的背景知识。在不需要特殊的硬件设备就能编译和运行的详细示例的指引下,你将学会如何给字符设备、块设备和网络接口编写驱动程序。PCI、USB和tty(终端)子系统都单列一章。本书为那些对操作系统的工作机制好奇的人提供了地址空间、异步事件和I/O等方面的阐述。
AI导读
核心看点
  • Linux驱动开发经典,揭示内核工作机制
  • 涵盖字符、块设备及网络接口驱动编写
  • 深入解析PCI、USB及tty子系统原理
适合谁读
  • 具备C语言及Unix系统调用基础的开发者
  • 对操作系统内核实现机制好奇的技术人员
  • 希望系统学习Linux驱动开发的入门者
读前提醒
  • 基于2.6内核,代码需适配新版内核才能编译
  • 建议结合源码阅读,部分概念讲解较浅显
  • 英文原版翻译质量一般,建议参考英文原版
读者共识
  • 公认的经典入门书,但内容略显陈旧
  • 理论性强,适合管中窥豹了解内核架构
  • 需配合实际动手练习,否则容易遗忘

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "GFP_ATOMIC Used to allocate memory from interrupt handlers and other code outside of a process context. Never sleeps. GFP_KERNEL Normal allocation of kernel memory. May sleep."
  • "struct gendisk is a dynamically allocated structure that requires special kernel manipulation to be initialized; drivers cannot allocate the structure on their own. Instead, you must call:"
  • "The minors argument should be the number of minor numbers this disk uses; note that you cannot change the minors field later and expect things to work properly. When a disk is no longer needed, it should be freed with:"
  • "A gendisk is a reference-counted structure (it contains a kobject). There are get_disk and put_disk functions available to manipulate the reference count, but drivers should never need to do that. Normally, the call to del_gendisk removes the final reference to a gendisk, but there are no guarantees"
  • "But this book is also about how the Linux kernel works and how to adapt its workings to your needs or interests."
  • "My hope is that this edition helps to bring that fun and opportunity to a new set of Linux developers. Whether your interests are in the kernel or in user space, I hope you find this book to be a useful and interesting guide to just how the kernel works with the hardware."
  • "I am honored that I’ve had the ability to contribute to this book. I hope that it enables others to learn the details about the kernel, discover that driver development is not a scary or forbidding place, and possibly encourage others to join in and help in the collective effort of making this opera"
  • "We hope this book is useful as a starting point for people who want to become kernel hackers but don’t know where to start."
用户评论
传说内核87.15%都是driver
linux驱动入门书
描述了介于硬件和传统意义上Linux系统之间的硬件抽象层,比较散乱,没有实际经验的人去读绝对make no sense,但对于有经验的人来说,又觉得有点停留在表面。当然,没有任何可能在这么小的篇幅里讲清楚这个事情。
读得一知半解
大概翻了翻,信息量蛮大的,挺适合我这种不求甚解的人的~用来管中窥豹linux内核吧
服气!
翻译真水。
看的昏昏欲睡,不知道是外国人思维跟中国人不一样还是别的什么原因,感觉读起来很生硬,表达的理解起来非常吃力,对于这些纯理论的研究书籍向来都不感冒,估计作者写书时假设阅读此书的人跟他们自己水平差不多,很多东西一开始就讲的很深,没有连贯性。
没看完
收藏