Contents

IOConnectGetService(_:_:)

Returns the IOService a connect handle was opened on.

Declaration

func IOConnectGetService(_ connect: io_connect_t, _ service: UnsafeMutablePointer<io_service_t>!) -> kern_return_t

Parameters

  • connect:

    The connect handle created by IOServiceOpen.

  • service:

    On succes, the service handle the connection was opened on, which should be released with IOObjectRelease.

Return Value

A kern_return_t error code.

Discussion

Finds the service object a connection was opened on.

See Also

Miscellaneous