---
title: GetRegistryEntryID
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15+]
path: kernel/ioservice/3180698-getregistryentryid
---

# GetRegistryEntryID

Returns the registry ID for the current service.

## Declaration

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

```occ
kern_return_t GetRegistryEntryID(uint64_t *registryEntryID, OSDispatchMethod supermethod);
```

## 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](kernel/ioservice/3180701-registerservice.md)
- [SetName](driverkit/ioservice/setname.md)
- [IOServiceName](driverkit/ioservicename.md)
