macos 哪里可以系统学习如何编写Mac OS X设备驱动程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1326855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I systematically study how to write Mac OS X device drivers?
提问by drAlberT
I'm looking for an exhaustive, university-level book or guide to study in order to gain the ability of writing Mac OS X device drivers. I'm totally ignorant on this OS, but I'm already skilled on Linux.
我正在寻找一本详尽的、大学水平的书籍或学习指南,以便获得编写 Mac OS X 设备驱动程序的能力。我对这个操作系统完全一无所知,但我对 Linux 已经很熟练了。
Is there any Mac OS X counterpart for book "Linux Device Drivers"?
“Linux 设备驱动程序”一书是否有任何 Mac OS X 对应版本?
The best guide should introduce OS internals too, makes clear kernel space and userland differences and so on.
最好的指南也应该介绍操作系统内部结构,明确内核空间和用户空间差异等。
Thanks in advance
提前致谢
采纳答案by Ned Deily
The Apple Developer Connection web site contains lots of documentation. There is a whole section on Hardware & Drivers herein particular a Getting Started document here. Probably the best overall introduction to OS X internals is Mac OS X Internalsby Amit Singh.
Apple Developer Connection 网站包含大量文档。有硬件上的驱动程序一整节在这里尤其是入门文档在这里。可能对 OS X 内部结构最好的整体介绍是Amit Singh 的Mac OS X Internals。
回答by cms
Amit Singh's wonderful book Mac OS X Internals: A Systems Approachhas an extensive section on kernel extensions, the IOKit and drivers. It's the best general resource on OS X internals that I know of, but it doesn't cover the latest system updates; it only covers up to the 10.4 release (Tiger).
Amit Singh 的精彩著作Mac OS X Internals: A Systems Approach有大量关于内核扩展、IOKit 和驱动程序的部分。这是我所知道的关于 OS X 内部的最好的一般资源,但它不包括最新的系统更新;它最多只涵盖 10.4 版本(Tiger)。
回答by Kirk
Amit Singh's book is good but as other posters noted it needs to be updated. I'm getting up to speed on IOKit and opted for another newer book OS X and iOS Kernel Programming. It doesn't have the depth of Singh's book but it has many practical examples of driver code. It is perhaps a better choice if you want get going quickly.
Amit Singh 的书很好,但正如其他海报指出的那样,它需要更新。我正在了解 IOKit,并选择了另一本较新的书 OS X 和 iOS 内核编程。它没有 Singh 的书的深度,但它有许多驱动程序代码的实际示例。如果您想快速上手,这可能是更好的选择。
回答by user941601
I suggest the following as it is updated to Snow Leopard and Lion: Mac OS X and iOS Internals: To the Apple's Core by Jonathon Levine: http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Dstripbooks&field-keywords=Mac+internals&rh=n%3A283155%2Ck%3AMac+internals
我建议以下内容,因为它已更新到 Snow Leopard 和 Lion:Mac OS X 和 iOS 内部结构:乔纳森·莱文 (Jonathon Levine) 的 Apple 核心:http://www.amazon.com/s/ref=nb_sb_noss_1?url =search-alias %3Dstripbooks&field-keywords=Mac+internals&rh=n%3A283155%2Ck%3AMac+internals
This is quite a good book regarding all aspects of Mac OS X internals.
这是一本关于 Mac OS X 内部所有方面的好书。