---
title: GetAddress
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostdevice/getaddress
---

# GetAddress

Returns the address of the device.

## Declaration

```occ
virtual kern_return_t GetAddress(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 Device Information

- [GetSpeed](usbdriverkit/iousbhostdevice/getspeed.md)
- [GetFrameNumber](usbdriverkit/iousbhostdevice/getframenumber.md)
- [GetPortStatus](usbdriverkit/iousbhostdevice/getportstatus.md)
- [tIOUSBHostConnectionSpeed](usbdriverkit/tiousbhostconnectionspeed.md)
- [tIOUSBHostPortStatus](usbdriverkit/tiousbhostportstatus.md)
- [tIOUSBHostPortType](usbdriverkit/tiousbhostporttype.md)
