SetDataServicedHandler
Installs the handler block to execute when data is removed from the queue.
Declaration
virtual kern_return_t SetDataServicedHandler(OSAction *action);Parameters
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
If your code produces data for the queue, use this method to install a handler so you can add more data to the queue. When space becomes available in the queue, the system executes your handler.