IORegistryEntryGetRegistryEntryID

Function IORegistryEntryGetRegistryEntryID 

Source
pub unsafe extern "C-unwind" fn IORegistryEntryGetRegistryEntryID(
    entry: io_registry_entry_t,
    entry_id: *mut u64,
) -> kern_return_t
Available on crate feature libc only.
Expand description

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

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.

Parameter entry: The registry entry handle whose ID to look up.

Parameter entryID: The resulting ID.

Returns: A kern_return_t error code.