RAD Dynamic Handlers

A module can register a dynamic handler for each interface that is implemented by the module. This registration allows efficient searching within a module by limiting a listing to a matching subset of the instances that the module is managing. Note that you can register a single dynamic handler for a module's entire namespace. Additionally, when you register a dynamic handler, you need to specify a lookup function pointer.

The following example shows the use of dynamic handlers in the zones module.

Example 4-2 Using Dynamic Handlers in the Zones Module

cerr = rad_cont_register_dynamic(rad_container, aname,
&modinfo, zone_listf, zone_lookupf, NULL);