<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SerialDriverKit",
  "identifier" : "/documentation/SerialDriverKit/IOUserSerial/initWith",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SerialDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserSerial@F@initWith#*$@S@IOBufferMemoryDescriptor#"
  },
  "title" : "initWith"
}
-->

# initWith

Initializes the private data structures associated with this class.

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

## Parameters

`ifmd`

The memory buffer to use for interrupt-related data.

## Return Value

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

## Discussion

Do not override or call this method. Instead, override the <doc://com.apple.documentation/documentation/USBSerialDriverKit/IOUserUSBSerial/init> method and use it to allocate memory for your driver’s data structures.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)