IOServiceGetBusyState

Function IOServiceGetBusyState 

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

Returns the busyState of an IOService.

Many activities in IOService are asynchronous. When registration, matching, or termination is in progress on an IOService, its busyState is increased by one. Change in busyState to or from zero also changes the IOService’s provider’s busyState by one, which means that an IOService is marked busy when any of the above activities is occurring on it or any of its clients.

Parameter service: The IOService whose busyState to return.

Parameter busyState: The busyState count is returned.

Returns: A kern_return_t error code.

§Safety

busy_state must be a valid pointer.