---
title: initWith
framework: usbserialdriverkit
role: symbol
role_heading: Instance Method
path: usbserialdriverkit/iouserusbserial/initwith
---

# initWith

Initializes the private data structures associated with this class.

## Declaration

```occ
virtual bool initWith(IOBufferMemoryDescriptor *ifmd);
```

## Parameters

- `ifmd`: The memory buffer to use for interrupt-related data.

## Return Value

Return Value YES if initialization succeeded, or NO if it didn’t.

## Discussion

Discussion Do not override or call this method. Instead, override the init method and use it to allocate memory for your driver’s data structures.

## See Also

### Configuring the Service

- [init](usbserialdriverkit/iouserusbserial/init.md)
- [Start](usbserialdriverkit/iouserusbserial/start.md)
- [Stop](usbserialdriverkit/iouserusbserial/stop.md)
- [free](usbserialdriverkit/iouserusbserial/free.md)
