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

# GetDeviceParams

Gets device parameters in response to a call from the framework.

```
virtual kern_return_t GetDeviceParams(struct DeviceParams *deviceParams);
```

## Parameters

`deviceParams`

An in/out [`DeviceParams`](/documentation/BlockStorageDeviceDriverKit/DeviceParams) parameter. On output, populate this structure with the device’s parameter data.

## Return Value

A value that indicates the get-device-params 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)