Create
Creates a dispatch source that you use as a shared-memory data queue.
Declaration
static kern_return_t Create(uint64_t queueByteCount, IODispatchQueue *queue, IODataQueueDispatchSource **source);Parameters
- queueByteCount:
The size of the queue in bytes.
- queue:
The dispatch queue to use for executing tasks. Note that the Dataavailable and Dataserviced handlers execute on the queue set for the target method of the associated Osaction object, not this queue.
- source:
A variable for storing the resulting dispatch source object. On success, the returned object has a retain count of 1, and you must release it when finished.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.