Contents

resourceMatching(const char *, OSDictionary *)

Creates a matching dictionary, or adds matching properties to an existing dictionary, that specify a resource service match.

Declaration

static OSDictionary * resourceMatching(
 const char *name, 
 OSDictionary *table = 0 );

Parameters

  • name:

    The resource name, as a const C string. Resource matching is successful when an object by that name has been published with the publishResource method.

  • table:

    If zero, resourceMatching creates a matching dictionary and returns a reference to it, otherwise the matching properties are added to the specified dictionary.

Return Value

The matching dictionary created, or passed in, is returned on success, or zero on failure.

Overview

IOService maintains a resource service IOResources that allows objects to be published and found globally in the I/O Kit based on a name, using the standard IOService matching and notification calls.

See Also

Miscellaneous