---
title: UserSendCDB
framework: scsiperipheralsdriverkit
role: symbol
role_heading: Instance Method
platforms: [driverkit 22.0+]
path: scsiperipheralsdriverkit/iouserscsiperipheraldevicetype07/usersendcdb
---

# UserSendCDB

Sends a vendor-specific Command Descriptor Block (CDB) to the device.

## Declaration

```occ
virtual kern_return_t UserSendCDB(SCSIType07OutParameters command, SCSIType07InParameters *response);
```

## Parameters

- `command`: A doc://com.apple.scsiperipheralsdriverkit/documentation/SCSIPeripheralsDriverKit/SCSIType07OutParameters instance that contains the request information.
- `response`: A pointer to a doc://com.apple.scsiperipheralsdriverkit/documentation/SCSIPeripheralsDriverKit/SCSIType07InParameters instance. On return, the framework fills this object with the response data.

## Return Value

Return Value A value that indicates the result of sending the CDB. kIOReturnSuccess indicates success. For error definitions, see IOKit Constants.

## Discussion

Discussion Call this method to deliver vendor-specific 16-byte commands to the external drive that this dext matches.

## See Also

### Sending commands to the device

- [SCSIType07OutParameters](scsiperipheralsdriverkit/scsitype07outparameters.md)
- [SCSIType07OutVersion](scsiperipheralsdriverkit/scsitype07outversion.md)
- [SCSIType07InParameters](scsiperipheralsdriverkit/scsitype07inparameters.md)
- [SCSIType07InVersion](scsiperipheralsdriverkit/scsitype07inversion.md)
