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

# REQUEST_SENSE

Fills a Command Descriptor Block (CDB) to perform a SCSI sense-request command.

```
bool REQUEST_SENSE(SCSIDeviceOutParameters *request, UInt64 bufAddr, UInt8 senseLength, SCSIDeviceInParameters *response);
```

## Parameters

`request`

An object that contains the request information.

`bufAddr`

A buffer to receive the sense-request data.

`senseLength`

The length of requested sense data, in bytes.

`response`

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

## 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 `REQUEST SENSE` SCSI command.

---

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)