---
title: GetDeviceAddress
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostpipe/getdeviceaddress
---

# GetDeviceAddress

Retrieves the address of the device.

## Declaration

```occ
virtual kern_return_t GetDeviceAddress(uint8_t *address) const;
```

## Parameters

- `address`: A pointer to a variable. On output, the variable contains the device’s address.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Getting the Device Attributes

- [GetSpeed](usbdriverkit/iousbhostpipe/getspeed.md)
- [tIOUSBHostConnectionSpeed](usbdriverkit/tiousbhostconnectionspeed.md)
