Contents

IORegistryEntryGetNameInPlane(_:_:_:)

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

Declaration

func IORegistryEntryGetNameInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<CChar>!, _ name: UnsafeMutablePointer<CChar>!) -> kern_return_t

Parameters

  • entry:

    The registry entry handle whose name to look up.

  • plane:

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

  • name:

    The caller's buffer to receive the name.

Return Value

A kern_return_t error code.

Discussion

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.

See Also

Miscellaneous