Contents

IOServiceRequestProbe(_:_:)

A request to rescan a bus for device changes.

Declaration

func IOServiceRequestProbe(_ service: io_service_t, _ options: UInt32) -> kern_return_t

Parameters

  • service:

    The IOService object to request a rescan, usually obtained via the IOServiceGetMatchingServices or IOServiceAddNotification APIs.

  • options:

    An options mask, interpreted only by the IOService's family.

Return Value

A return code generated by IOService::requestProbe.

Discussion

A non kernel client may request a bus or controller rescan for added or removed devices, if the bus family does automatically notice such changes. For example, SCSI bus controllers do not notice device changes. The implementation of this routine is family dependent, and the default IOService implementation returns kIOReturnUnsupported.

See Also

Miscellaneous