Contents

IORegistryEntryGetParentEntry(_:_:_:)

Returns the first parent of a registry entry in a plane.

Declaration

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

Parameters

  • entry:

    The registry entry whose parent to look up.

  • plane:

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

  • parent:

    The first parent of the registry entry, on success. The parent must be released by the caller.

Return Value

A kern_return_t error code.

Discussion

This function will return the parent to which the registry entry was first attached in a plane.

See Also

Miscellaneous