creating a IOBlockStorageDriver in mac os x Leopard
How can one create a simple IOBl开发者_如何学运维ockStorageDriver in mac os x leopard. Any help would be appreciated.
Some parts of the XNU kernel and the drivers which ship with Mac OS X are open source:
http://opensource.apple.com/release/mac-os-x-1066/
The driver for the Intel PIIX ATA controller seems a good fit for what you're looking for. Maybe you can use it as an example to work from.
For general Mac OS X kernel information, I've found the book Mac OS X Internals by Amit Singh very useful.
Depending on the type of driver you're trying to write, you might want to look into the example Filter Scheme Driver provided by Apple, and the similar "Simple Crypto Disk" example from the aforementioned book. The source code is available at Link
精彩评论