write()
Declaration
#ifdef __LP64__
virtual IOReturn write(
IOService *client,
UInt64 byteStart,
IOMemoryDescriptor *buffer,
IOStorageAttributes *attributes = 0,
UInt64 *actualByteCount = 0);
#else /* !__LP64__ */
virtual IOReturn write(
IOService *client,
UInt64 byteStart,
IOMemoryDescriptor *buffer,
UInt64 *actualByteCount = 0);
#endif
/* !__LP64__ */Parameters
- client:
Client requesting the write.
- byteStart:
Starting byte offset for the data transfer.
- buffer:
Buffer for the data transfer. The size of the buffer implies the size of the data transfer.
- attributes:
Attributes of the data transfer. See IOStorageAttributes.
- actualByteCount:
Returns the actual number of bytes transferred in the data transfer.
Return Value
Returns the status of the data transfer.
Overview
Write data into the storage object at the specified byte offset from the specified buffer, synchronously. When the write completes, this method will return to the caller. The actual byte count field is optional.