---
title: Create
framework: driverkit
role: symbol
role_heading: Static Method
path: driverkit/iotimerdispatchsource/create
---

# Create

Creates and configures a timer dispatch object.

## Declaration

```occ
static kern_return_t Create(IODispatchQueue *queue, IOTimerDispatchSource **source);
```

## Parameters

- `queue`: The dispatch queue on which to run any handler blocks.
- `source`: A variable for storing the dispatch source. On return, this variable contains the retained object. You are responsible for releasing this object.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Configuring the Timer Source

- [init](driverkit/iotimerdispatchsource/init.md)
- [free](driverkit/iotimerdispatchsource/free.md)
- [SetHandler](driverkit/iotimerdispatchsource/sethandler.md)
