osfmk/man/io_done_queue_create.html
Function - Create an io_done_queue kernel object.
**kern\_return\_t io\_done\_queue\_create**** (mach\_port\_t **host,** mach\_port\_t **queue** );**
host[in host-name send right] The name (or control) port for the host on which the io_done_queue should be created.
queue[out io-done-queue send right] The port referencing the created io_done_queue.
The io_done_queue_create function is called to create a new instatiation of the kernel object supporting asynchronous read/write operations on a device.
KERN_INVALID_ARGUMENT Invalid host parameter.
KERN_RESOURCE_SHORTAGE Insufficient kernel resources to allocate kernel object.
Functions: io_done_queue_terminate, io_done_queue_wait, device_read_async, device_read_async_inband, device_read_overwrite_async, device_write_async, device_write_async_inband.