Contents

waitForMatchingService

Waits for a matching to service to be published.

Declaration

static IOService * waitForMatchingService(
 OSDictionary *matching, 
 uint64_t timeout = timeout);

Parameters

  • matching:

    The matching dictionary describing the desired IOService object. (Does not consume a reference of the matching dictionary - differs from waitForService() which does consume a reference on the matching dictionary.)

  • timeout:

    The maximum time to wait in nanoseconds. Default is to wait forever.

Return Value

A published IOService object matching the supplied dictionary. waitForMatchingService returns a reference to the IOService which should be released by the caller. (Differs from waitForService() which does not retain the returned object.)

Overview

Provides a method of waiting for an IOService object matching the supplied matching dictionary to be registered and fully matched.

See Also

Miscellaneous