Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Create virtual block storage driver, what to subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create virtual block storage driver, what to subclass



Hey Mark,

The most correct solution here is to subclass IOBlockStorageDevice. IOBlockStorageDevice serves as a template for developers to "fill in" with the specifics of their transport, whether it be RAM, ATA, SCSI, USB, disk images, etc. We made IOBlockStorageDevice an abstract class for exactly this reason.

Dan

On 16 Jun 2008, at 1:58 PM, Mark wrote:

Hello Herb,

<http://developer.apple.com/samplecode/SCSIHBAEmulator/index.html>

actually I looked at this sample, but was under the impression that even though it creates a RAM drive, it's purpose is quite different.


For my RAM drive I'm not dealing with SCSI at all, so it seems not correct to use this example as base. It seems to introduce complexity to me (having to deal with SCSI stuff) and to the system as all read/write requests will be packaged as SCSI CDBs.

Overriding something at a much higher level like IOMedia, as Tony suggested, is probably best suited for my needs.

Thanks
Regards
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Create virtual block storage driver, what to subclass (From: Mark <email@hidden>)
 >Re: Create virtual block storage driver, what to subclass (From: "Herb Petschauer" <email@hidden>)
 >Re: Create virtual block storage driver, what to subclass (From: Mark <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.