I have two root enum devices handled by two different drivers(Pnp creates
PDOs for them). One driver’s AddDevice routine is depended on devices
created in the other driver’s AddDevice routine.
- Is it right to say, if driver_A is loaded before driver_B(by setting
StartType), then driver_A AddDevice will be called before driver_B
AddDevice ?
2.In multi-processors, because of parallel processing, Is it possible that
driver_A AddDevice will be processed in parallel or even after driver_B
AddDevice?
To answer this you should read the buddy Driver article in one of the past
NtInsiders. Essentially, you would call the PnP manager and register a
callback to notify your driver when the other drivers it needs have been
loaded (or are already loaded).
–Mark Cariddi
–
Mark Cariddi
Open Systems Resources, Inc.
www.osr.com
“Dror” wrote in message news:xxxxx@ntdev…
>
> I have two root enum devices handled by two different drivers(Pnp creates
> PDOs for them). One driver’s AddDevice routine is depended on devices
> created in the other driver’s AddDevice routine.
>
> 1. Is it right to say, if driver_A is loaded before driver_B(by setting
> StartType), then driver_A AddDevice will be called before driver_B
> AddDevice ?
> 2.In multi-processors, because of parallel processing, Is it possible that
> driver_A AddDevice will be processed in parallel or even after driver_B
> AddDevice?
>
>
it’s entirely possible that the order won’t be the same. If driver B is
dependant on device having been created & setup then it seems like
device B should either be a child of A or should load on A as a filter.
why do you have the dependancy?
-p
-----Original Message-----
From: Dror [mailto:xxxxx@store-age.com]
Sent: Wednesday, May 22, 2002 8:11 AM
To: NT Developers Interest List
Subject: [ntdev] AddDevice routine order.
I have two root enum devices handled by two different drivers(Pnp
creates PDOs for them). One driver’s AddDevice routine is depended on
devices created in the other driver’s AddDevice routine.
- Is it right to say, if driver_A is loaded before driver_B(by setting
StartType), then driver_A AddDevice will be called before driver_B
AddDevice ? 2.In multi-processors, because of parallel processing, Is it
possible that driver_A AddDevice will be processed in parallel or even
after driver_B AddDevice?
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%
> I have two root enum devices handled by two different drivers(Pnp creates
PDOs for them). One driver’s AddDevice routine is depended on devices
created in the other driver’s AddDevice routine.
This is wrong, since devnode is not started yet.
Do everything in IRP_MN_START_DEVICE handler.
To maintain such a dependency, register a device interface in one devnode and a device interface arrival notification in another
devnode.
Max