|
ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOStorage.h |
| Include Path: | <IOKit/storage/IOStorage.h> |
| Path: | /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/storage/IOStorage.h |
| Includes: |
This header contains the IOStorage class definition. The IOStorage class is the common base class for both driver and media objects.
For more information on the IOStorage class, see Writing Drivers for Mass Storage Devices.
The common base class for mass storage objects.
IOStorageCompletionAction |
typedef void ( *IOStorageCompletionAction)( void *target, void *parameter, IOReturn status, UInt64 actualByteCount);
targetOpaque client-supplied pointer (or an instance pointer for a C++ callback).
parameterOpaque client-supplied pointer.
statusStatus of the data transfer.
actualByteCountActual number of bytes transferred in the data transfer.
The IOStorageCompletionAction declaration describes the C (or C++) completion routine that is called once an asynchronous storage operation completes.
IOStorageAttributes |
struct IOStorageAttributes { IOStorageOptions options; UInt32 reserved[3]; };
optionsOptions for the request. See IOStorageOptions.
reservedReserved for future use. Set to zero.
Attributes of read and write storage requests.
IOStorageCompletion |
struct IOStorageCompletion { void *target; IOStorageCompletionAction action; void *parameter; };
targetOpaque client-supplied pointer (or an instance pointer for a C++ callback).
actionCompletion routine to call on completion of the data transfer.
parameterOpaque client-supplied pointer.
The IOStorageCompletion structure describes the C (or C++) completion routine that is called once an asynchronous storage operation completes. The values passed for the target and parameter fields will be passed to the routine when it is called.
IOStorageAccess |
enum { kIOStorageAccessNone = 0x00, kIOStorageAccessReader = 0x01, kIOStorageAccessReaderWriter = 0x03, kIOStorageAccessSharedLock = 0x04, kIOStorageAccessExclusiveLock = 0x08 };
kIOStorageAccessNoneNo access is requested; should not be passed to open().
kIOStorageAccessReaderRead-only access is requested.
kIOStorageAccessReaderWriterRead and write access is requested.
kIOStorageAccessSharedLockShared access is requested.
kIOStorageAccessExclusiveLockExclusive access is requested.
The IOStorageAccess enumeration describes the possible access levels for open requests.
IOStorageOptions |
enum { kIOStorageOptionNone = 0x00000000, kIOStorageOptionForceUnitAccess = 0x00000001, kIOStorageOptionReserved = 0xFFFFFFFE };
kIOStorageOptionForceUnitAccessForce the request to access the media.
Options for read and write storage requests.
kIOStorageCategory |
kIOStorageCategory is a value for IOService's kIOMatchCategoryKey property.
#define kIOStorageCategory "IOStorage" /* (as IOMatchCategory) */
The kIOStorageCategory value is the standard value for the IOService property kIOMatchCategoryKey ("IOMatchCategory") for all storage drivers. All storage objects that expect to drive new content (that is, produce new media objects) are expected to compete within the kIOStorageCategory namespace.
See the IOService documentation for more information on match categories.
kIOStorageClass |
The name of the IOStorage class.
#define kIOStorageClass "IOStorage"
kIOStorageFeatureForceUnitAccess |
Describes the presence of the Force Unit Access feature.
#define kIOStorageFeatureForceUnitAccess "Force Unit Access"
This property describes the ability of the storage stack to force a request to access the media. It is one of the feature entries listed under the top- level kIOStorageFeaturesKey property table. It has an OSBoolean value.
kIOStorageFeaturesKey |
A property of any object in the storage stack.
#define kIOStorageFeaturesKey "IOStorageFeatures"
kIOStorageFeaturesKey is a property of any object in the storage stack that wishes to express support of additional features, such as Force Unit Access. It is typically defined in the device object below the block storage driver object. It has an OSDictionary value, where each entry describes one given feature.
|
Last Updated: 2008-12-19