---
title: createQueues
framework: kernel
role: pseudoSymbol
path: kernel/iostream/1809702-createqueues
---

# createQueues

Creates the shared input and output queues, without regard to whether the stream is open or not. Normally this is called by handleOpen().

## Declaration

```occ
virtual IOReturn createQueues(
 IOItemCount queueLength = 0,
 IOOptionBits options = 0 ); 
```

## Parameters

- `queueLength`:
- `options`:

## Return Value

Return Value Returns kIOReturnSuccess if the queues were successfully created.

## See Also

### Managing shared queues

- [destroyQueues](kernel/iostream/1809709-destroyqueues.md)
- [getInputQueue](kernel/iostream/1809718-getinputqueue.md)
- [getInputQueueMemoryDescriptor](kernel/iostream/1809727-getinputqueuememorydescriptor.md)
- [getOutputQueue](kernel/iostream/1809738-getoutputqueue.md)
- [getOutputQueueMemoryDescriptor](kernel/iostream/1809744-getoutputqueuememorydescriptor.md)
