setWriteCacheState
Sets the write cache state of the device.
Declaration
#ifdef __LP64__
virtual IOReturn setWriteCacheState(
bool enabled) = 0;
#else /* !__LP64__ */
virtual IOReturn setWriteCacheState(
bool enabled);
#endif
/* !__LP64__ */Parameters
- enabled:
True to enable the write cache; False to disable the write cache.
Overview
Sets the write cache state of the device. The write cache state is not guaranteed to persist across reboots and detaches.
See Also
Miscellaneous
doAsyncReadWritedoEjectMediadoFormatMediadoGetFormatCapacitiesdoSynchronizeCachedoUnmapgetAdditionalDeviceInfoStringgetProductStringgetRevisionStringgetVendorStringgetWriteCacheStateinitreportBlockSizereportEjectabilityreportMaxValidBlockreportMediaStatereportRemovabilityreportWriteProtectionrequestIdle