## io_done_queue_create

Function - Create an io_done_queue kernel object.

### SYNOPSIS

    kern_return_t   io_done_queue_create
                    (mach_port_t                               host,
                     mach_port_t                               queue);

### PARAMETERS

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.

### DESCRIPTION

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.

### RETURN VALUES

KERN_INVALID_ARGUMENT
  Invalid host parameter.

KERN_RESOURCE_SHORTAGE
  Insufficient kernel resources to allocate kernel object.

### RELATED INFORMATION

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.