+ // Scan active instances for enumerated children that can be handled by this module
+ for( int i = 0; i < Module->nDevices; i ++ )
+ {
+ // TODO: Have list of unbound enumerated children
+ for( tUDI_DriverInstance *inst = gpUDI_ActiveInstances; inst; inst = inst->Next )
+ {
+ // Loop children
+ for( tUDI_ChildBinding *child = inst->FirstChild; child; child = child->Next )
+ {
+ if( child->BoundInstance )
+ continue ;
+ // Check for match
+ int level = UDI_MA_CheckDeviceMatch(
+ Module->Devices[i]->nAttribs, Module->Devices[i]->Attribs,
+ child->nAttribs, child->Attribs
+ );
+ // No match: Continue
+ if( level == 0 )
+ continue ;
+ UDI_MA_CreateChildInstance(Module, inst, child);
+ }
+ }
+ }