Contents

IOServiceClose(_:)

Close a connection to an IOService and destroy the connect handle.

Declaration

func IOServiceClose(_ connect: io_connect_t) -> kern_return_t

Parameters

  • connect:

    The connect handle created by IOServiceOpen. It will be destroyed by this function, and should not be released with IOObjectRelease.

Return Value

A kern_return_t error code.

Discussion

A connection created with the IOServiceOpen should be closed when the connection is no longer to be used with IOServiceClose.

See Also

Miscellaneous