Enqueue
Adds a single entry to the shared data queue.
Declaration
kern_return_t Enqueue(uint32_t dataSize, IODataQueueClientEnqueueEntryBlock callback);Parameters
- dataSize:
The size of the data to enqueue.
- callback:
The callback to execute when there is enough space to enqueue the data.
Return Value
kIOReturnSuccess on success, kIOReturnOverrun if the queue was full, or kIOReturnError if the queue is corrupt. See Error Codes.