enum
{
kIOPolledWrite = 1,
- kIOPolledRead = 2
+ kIOPolledRead = 2,
+ kIOPolledFlush = 3
};
typedef void (*IOPolledCompletionAction)( void * target,
virtual IOReturn checkForWork(void) = 0;
- OSMetaClassDeclareReservedUnused(IOPolledInterface, 0);
+ virtual IOReturn setEncryptionKey(const uint8_t * key, size_t keySize);
+
+ OSMetaClassDeclareReservedUsed(IOPolledInterface, 0);
OSMetaClassDeclareReservedUnused(IOPolledInterface, 1);
OSMetaClassDeclareReservedUnused(IOPolledInterface, 2);
OSMetaClassDeclareReservedUnused(IOPolledInterface, 3);
void * write_file_addr, size_t write_file_len,
IOPolledFileIOVars ** fileVars,
OSData ** imagePath,
- uint8_t * volumeCryptKey, size_t keySize);
+ uint8_t * volumeCryptKey, size_t * keySize);
IOReturn IOPolledFileClose(IOPolledFileIOVars ** pVars,
off_t write_offset, void * addr, size_t write_length,
uint8_t * bytes, IOByteCount size,
IOPolledFileCryptVars * cryptvars);
+extern __C IOReturn IOPolledFileFlush(IOPolledFileIOVars * vars);
+
extern __C IOReturn IOPolledFilePollersOpen(IOPolledFileIOVars * vars, uint32_t state, bool abortable);
extern __C IOReturn IOPolledFilePollersClose(IOPolledFileIOVars * vars, uint32_t state);
+extern __C IOReturn IOPolledFilePollersSetEncryptionKey(IOPolledFileIOVars * vars,
+ const uint8_t * key, size_t keySize);
+
extern __C IOPolledFileIOVars * gCoreFileVars;
#ifdef _SYS_CONF_H_