---
title: GetProductString
framework: BlockStorageDeviceDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 21.0+]
path: blockstoragedevicedriverkit/iouserblockstoragedevice/getproductstring
---

# GetProductString

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

## Declaration

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

## Parameters

- `product`: An in/out doc://com.apple.blockstoragedevicedriverkit/documentation/BlockStorageDeviceDriverKit/DeviceString parameter. On output, populate this structure with the product string.

## Return Value

Return Value A value that indicates the get-product-string result. Return kIOReturnSuccess to inidicate success. To indicate a failure, see IOKit Constants for error definitions.

## See Also

### Reporting Device Metadata

- [GetVendorString](blockstoragedevicedriverkit/iouserblockstoragedevice/getvendorstring.md)
- [GetRevisionString](blockstoragedevicedriverkit/iouserblockstoragedevice/getrevisionstring.md)
- [GetAdditionalInfoString](blockstoragedevicedriverkit/iouserblockstoragedevice/getadditionalinfostring.md)
- [DeviceString](blockstoragedevicedriverkit/devicestring.md)
- [GetDeviceParams](blockstoragedevicedriverkit/iouserblockstoragedevice/getdeviceparams.md)
- [DeviceParams](blockstoragedevicedriverkit/deviceparams.md)
