Contents

waitForService

Deprecated use waitForMatchingService(). Waits for a matching to service to be published.

Declaration

static IOService * waitForService(
 OSDictionary *matching, 
 mach_timespec_t *timeout = 0);

Parameters

  • matching:

    The matching dictionary describing the desired IOService object. waitForService consumes one reference of the matching dictionary.

  • timeout:

    The maximum time to wait.

Return Value

A published IOService object matching the supplied dictionary.

Overview

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

See Also

Miscellaneous