使用iokit框架在mac os x中以编程方式创建块设备 [英] creating a block device programmatically in mac os x using iokit framework

查看:131
本文介绍了使用iokit框架在mac os x中以编程方式创建块设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我是Mac OS X编程的入门者,因此在理解它时遇到了一些问题.我想在Mac OS X Leopard中创建一个块设备,该设备将充当Mac OS X中的普通驱动器,之后我要根据我在安装过程中创建的驱动器定义该设备或驱动器的几何形状.由于我正在使用xcode并希望进行驱动程序开发,因此我正在使用iokit框架.谁能告诉我应该使用哪些头文件和API来完成此任务.任何帮助,将不胜感激.请帮我!!!铁皮707.

As i am a total noob to mac os x programming i am having some problems understanding this.I want to create a block device in mac os x leopard which would act as a normal drive in mac os x and after that i want to define the geometry of that device or drive according to a drive which i created during installation. As i am using xcode and want to do driver development so i am using iokit framework. Can anyone tell me which header files and API`s should i use to accomplish this task. Any help would be appreciated. Please help me!!! Ironhide707.

推荐答案

您需要IOKit的IOStorage子系统.最简单的入门方法是创建过滤器方案驱动程序: http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/MassStorage/08_Media_Example/MS_Media_Example.html

You want the IOStorage subsystem of IOKit. The easiest way to get started is to create a filter scheme driver: http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/MassStorage/08_Media_Example/MS_Media_Example.html

阿米特·辛格(Amit Singh)撰写的《 Mac OS X Internals》一书也包含一些信息和示例(该资源可从 http:/获得./osxbook.com/).

The book "Mac OS X Internals" by Amit Singh also contains some info and an example on this (source available at http://osxbook.com/).

这篇关于使用iokit框架在mac os x中以编程方式创建块设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆