<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOExtensiblePaniclog/AppendData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOExtensiblePaniclog@F@AppendData#*$@S@OSData#"
  },
  "title" : "AppendData"
}
-->

# AppendData

```
virtual kern_return_t AppendData(OSData *data);
```

## Parameters

`data`

Data to be inserted

## Return Value

0 in case of success. Negative in case of an error.

## Discussion\abstract This function is called to insert data into the buffer.
\discussion This function overwrites the data in the buffer. The write starts from
last written byte and continues until ‘len’

---

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)