IOConnectGetService

Function IOConnectGetService 

Source
pub unsafe extern "C-unwind" fn IOConnectGetService(
    connect: io_connect_t,
    service: *mut io_service_t,
) -> kern_return_t
Available on crate feature libc only.
Expand description

Returns the IOService a connect handle was opened on.

Finds the service object a connection was opened on.

Parameter connect: The connect handle created by IOServiceOpen.

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

Returns: A kern_return_t error code.

ยงSafety

service must be a valid pointer.