---
title: createQueues
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/createqueues
---

# createQueues

Creates the shared input and output queues, without regard to whether the stream is open or not.

## Declaration

```occ
kern_return_t createQueues(uint32_t queueCount, uint32_t options);
```

## Return Value

Return Value kIOReturnSuccess if the queues were successfully created.

## Discussion

Discussion Normally, init calls this method.

## See Also

### Working with queues

- [GetInputQueue](videodriverkit/iouservideostream/getinputqueue.md)
- [GetOutputQueue](videodriverkit/iouservideostream/getoutputqueue.md)
- [destroyQueues](videodriverkit/iouservideostream/destroyqueues.md)
- [dequeueInputEntry](videodriverkit/iouservideostream/dequeueinputentry.md)
- [enqueueOutputEntry](videodriverkit/iouservideostream/enqueueoutputentry.md)
- [SendBufferQueueChange](videodriverkit/iouservideostream/sendbufferqueuechange.md)
- [IOStreamBufferQueue](videodriverkit/iostreambufferqueue.md)
