IOServiceAuthorize

Function IOServiceAuthorize 

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

Authorize access to an IOService.

Determine whether this application is authorized to invoke IOServiceOpen() for a given IOService, either by confirming that it has been previously authorized by the user, or by soliciting the console user.

Parameter service: The IOService object to be authorized, usually obtained via the IOServiceGetMatchingServices or IOServiceAddNotification APIs.

Parameter options: kIOServiceInteractionAllowed may be set to permit user interaction, if required.

Returns: kIOReturnSuccess if the IOService is authorized, kIOReturnNotPermitted if the IOService is not authorized.