Contents

IORegistryEntryGetRegistryEntryID(_:_:)

Returns an ID for the registry entry that is global to all tasks.

Declaration

func IORegistryEntryGetRegistryEntryID(_ entry: io_registry_entry_t, _ entryID: UnsafeMutablePointer<UInt64>!) -> kern_return_t

Parameters

  • entry:

    The registry entry handle whose ID to look up.

  • entryID:

    The resulting ID.

Return Value

A kern_return_t error code.

Discussion

The entry ID returned by IORegistryEntryGetRegistryEntryID can be used to identify a registry entry across all tasks. A registry entry may be looked up by its entryID by creating a matching dictionary with IORegistryEntryIDMatching() to be used with the IOKit matching functions. The ID is valid only until the machine reboots.

See Also

Miscellaneous