<!--
{
  "availability" : [
    "DriverKit: 22.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SCSIPeripheralsDriverKit",
  "identifier" : "/documentation/SCSIPeripheralsDriverKit/SMART_Read_Data_Thresholds",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "SCSIPeripheralsDriverKit"
    ],
    "preciseIdentifier" : "c:@F@SMART_Read_Data_Thresholds#*$@S@SCSIDeviceOutParameters#k#k#*$@S@SCSIDeviceInParameters#k#"
  },
  "title" : "SMART_Read_Data_Thresholds"
}
-->

# SMART_Read_Data_Thresholds

Fills a Command Descriptor Block (CDB) to perform a SMART SCSI Command to read data thresholds.

```
bool SMART_Read_Data_Thresholds(SCSIDeviceOutParameters *request, UInt64 requestedBytes, UInt64 bufAddr, SCSIDeviceInParameters *response, UInt64 senseBufAddr);
```

## Parameters

`request`

An object that contains the request information.

`requestedBytes`

The number of bytes to read.

`bufAddr`

A buffer to receive the data.

`response`

An empty [`SCSIDeviceInParameters`](/documentation/SCSIPeripheralsDriverKit/SCSIDeviceInParameters) object. On return, the framework populates this object with the response information.

`senseBufAddr`

The address of the sense buffer.

## Return Value

`true` if the call successfully fills the CDB; `false`, otherwise.

## Discussion

Use this method in your dext to prefill a 16-byte CDB for the standard SMART SCSI Command to read data thresholds.

---

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)