---
title: GetRegistryEntryID
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/ioservice/getregistryentryid
---

# GetRegistryEntryID

Returns the registry ID for the current service.

## Declaration

```occ
virtual kern_return_t GetRegistryEntryID(uint64_t *registryEntryID);
```

## Parameters

- `registryEntryID`: A pointer to an integer that, on return, contains the registry ID for the service. It is a programmer error to specify NULL or an invalid pointer for this parameter.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## See Also

### Registering the Service with IOKit

- [RegisterService](driverkit/ioservice/registerservice.md)
- [SetName](driverkit/ioservice/setname.md)
- [IOServiceName](driverkit/ioservicename.md)
