pub unsafe extern "C-unwind" fn IOServiceClose(
connect: io_connect_t,
) -> kern_return_tAvailable on crate feature
libc only.Expand description
Close a connection to an IOService and destroy the connect handle.
A connection created with the IOServiceOpen should be closed when the connection is no longer to be used with IOServiceClose.
Parameter connect: The connect handle created by IOServiceOpen. It will be destroyed by this function, and should not be released with IOObjectRelease.
Returns: A kern_return_t error code.