Contents

IORegistryEntryGetName(_:_:)

Returns a C-string name assigned to a registry entry.

Declaration

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

Parameters

  • entry:

    The registry entry handle whose name to look up.

  • 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 global name. The global name defaults to the entry's meta class name if it has not been named.

See Also

Miscellaneous