---
title: REQUEST_SENSE
framework: scsiperipheralsdriverkit
role: symbol
role_heading: Function
platforms: [driverkit 22.0+]
path: scsiperipheralsdriverkit/request_sense
---

# REQUEST_SENSE

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

## Declaration

```occ
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 doc://com.apple.scsiperipheralsdriverkit/documentation/SCSIPeripheralsDriverKit/SCSIDeviceInParameters object. On return, the framework populates this object with the response information.

## Return Value

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

## Discussion

Discussion Use this method in your dext to prefill a 16-byte CDB for the standard REQUEST SENSE SCSI command.

## See Also

### Creating common SCSI commands

- [TEST_UNIT_READY](scsiperipheralsdriverkit/test_unit_ready.md)
- [INQUIRY](scsiperipheralsdriverkit/inquiry.md)
- [READ_10](scsiperipheralsdriverkit/read_10.md)
- [WRITE_10](scsiperipheralsdriverkit/write_10.md)
- [READ_CAPACITY](scsiperipheralsdriverkit/read_capacity.md)
