Adding devices to a bus.

I have a kmdf bus driver (based on kmdf\toaster\bus\static) adding two
identical devices supported by a umdf driver (based on umdf\echo).

My expectation is that as the second device gets added, a second device
(instance) would be added to the existing driver. Instead, as can be seen
by the log below, a completely new driver instance is created.

I’m wondering is this as expected? Am I incorrectly adding these devices or
misunderstanding something?

Any help would be appreciated.

LOG…
[1596] SerialHub: DllMain( DLL_PROCESS_ATTACH )
[1596] SerialHub: DllGetClassObject()
[1596] SerialHub: CMyDriver::CreateInstance()
[1596] SerialHub: CMyDriver::OnDeviceAdd()
[1596] SerialHub: CMyDevice::Configure()
[1596] SerialHub: CMyQueue::CreateInstance()
[1596] SerialHub: CMyQueue::Initialize()
[1596] SerialHub: CreateSymbolicLink(\DosDevices\Global\COM30, 0)
[1596] SerialHub: AssignDeviceInterfaceState(0)
[1668] SerialHub: DllMain( DLL_PROCESS_ATTACH )
[1668] SerialHub: DllGetClassObject()
[1668] SerialHub: CMyDriver::CreateInstance()
[1668] SerialHub: CMyDriver::OnDeviceAdd()
[1668] SerialHub: CMyDevice::Configure()
[1668] SerialHub: CMyQueue::CreateInstance()
[1668] SerialHub: CMyQueue::Initialize()
[1668] SerialHub: CreateSymbolicLink(\DosDevices\Global\COM30, 800700B7)
[1668] SerialHub: DllMain( DLL_PROCESS_DETACH )

Greg,