IORegistryEntryCopyPath

Function IORegistryEntryCopyPath 

Source
pub unsafe extern "C-unwind" fn IORegistryEntryCopyPath(
    entry: io_registry_entry_t,
    plane: *mut [c_char; 128],
) -> Option<CFRetained<CFString>>
Available on crate feature libc only.
Expand description

Create a path for a registry entry.

The path for a registry entry is returned as a CFString The path describes the entry’s attachment in a particular plane, which must be specified. The path begins with the plane name followed by a colon, and then followed by ‘/’ separated path components for each of the entries between the root and the registry entry. An alias may also exist for the entry, and will be returned if available.

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

Parameter plane: The name of an existing registry plane. Plane names are defined in IOKitKeys.h, eg. kIOServicePlane.

Returns: An instance of CFString on success, to be released by the caller. IORegistryEntryCopyPath will fail if the entry is not attached in the plane.

§Safety

plane Array TODO.