---
title: initWith
framework: serialdriverkit
role: symbol
role_heading: Instance Method
path: serialdriverkit/iouserserial/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](serialdriverkit/iouserserial/init.md)
- [Start](serialdriverkit/iouserserial/start.md)
- [Stop](serialdriverkit/iouserserial/stop.md)
- [free](serialdriverkit/iouserserial/free.md)
