<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BlockStorageDeviceDriverKit",
  "identifier" : "/documentation/BlockStorageDeviceDriverKit/IOUserBlockStorageDevice/GetProductString",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BlockStorageDeviceDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserBlockStorageDevice@F@GetProductString#*$@S@DeviceString#"
  },
  "title" : "GetProductString"
}
-->

# GetProductString

Gets a string that identifies the product in response to a call from the framework.

```
virtual kern_return_t GetProductString(struct DeviceString *product);
```

## Parameters

`product`

An in/out [`DeviceString`](/documentation/BlockStorageDeviceDriverKit/DeviceString) parameter. On output, populate this structure with the product string.

## Return Value

A value that indicates the get-product-string result. Return <doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> to inidicate success. To indicate a failure, see <doc://com.apple.documentation/documentation/iokit/iokit_constants> for error definitions.

---

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)