---
title: init
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodriver/init
---

# init

Handles the basic initialization of the service.

## Declaration

```occ
virtual bool init();
```

## Return Value

Return Value true if initialization was successful, or false if an error occurred.

## Discussion

Discussion Override this method inherited from IOService. The system calls this method shortly after it instantiates your custom IOService subclass, and before it calls the Start method of your service. Limit the work you do in this method to simple tasks that must occur before your service starts. For example, use this method to allocate memory for your ivars structure. Always call super early in your implementation of this method.

## See Also

### Running the Driver Service

- [Start](audiodriverkit/iouseraudiodriver/start.md)
- [Stop](audiodriverkit/iouseraudiodriver/stop.md)
- [free](audiodriverkit/iouseraudiodriver/free.md)
