---
title: init
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkethernet/init
---

# init

Handles the basic initialization of the service.

## Declaration

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

## Return Value

Return Value YES if initialization was successful, or NO if an error occurred.

## Discussion

Discussion The system calls this method shortly after it instantiates your IOUserNetworkEthernet 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 stats. For example, you might use this method to allocate memory for your ivars structure. Always call the super implementation of this method at some point.

## See Also

### Configuring the Driver Service

- [free](networkingdriverkit/iousernetworkethernet/free.md)
- [RegisterEthernetInterface](networkingdriverkit/iousernetworkethernet/registerethernetinterface-4jqw8.md)
