IORegistryEntryGetNameInPlane

Function IORegistryEntryGetNameInPlane 

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

Returns a C-string name assigned to a registry entry, in a specified plane.

Registry entries can be named in a particular plane, or globally. This function returns the entry’s name in the specified plane or global name if it has not been named in that plane. The global name defaults to the entry’s meta class name if it has not been named.

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

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

Parameter name: The caller’s buffer to receive the name.

Returns: A kern_return_t error code.