Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question regarding IRP_MN_QUERY_STOP_DEVICE and IRP_MN_CANCEL_STOP_DEVICE

10 views
Skip to first unread message

Naresh

unread,
Oct 7, 2009, 12:19:52 PM10/7/09
to
Hi,

Im enumerating a virtual NIC (NDIS) driver and want to provide it some
resources like how a pnp bus would provide.

My bus driver enumerates a child and the NIC driver is loaded on top
of it. The bus driver reports the resources when
IRP_MN_QUERY_RESOURCE_REQUIREMENTS and IRP_MN_QUERY_RESOURCES is sent
by the PnP manager.

When the MiniportFilterResourceRequirements function is called in the
NIC driver, it has the got all the resources that i reported
earlier.

After exiting from the MiniportFilterResourceRequirements, the PnP
Manager sends few IRP_MN_QUERY_INTERFACE Irps to both the function and
the bus driver.

After that it sends the following to the function driver:

IRP_MN_QUERY_STOP_DEVICE
IRP_MN_CANCEL_STOP_DEVICE
IRP_MN_QUERY_STOP_DEVICE
IRP_MN_CANCEL_STOP_DEVICE

ive tried both completing from the function driver and passing it down
also, but after the last IRP_MN_CANCEL_STOP_DEVICE the PnP manager
stops sending any other Irps and the NIC driver also does not load.
Neither the StartDevice nor the RemoveDevice of the NIC driver is
called.

Any help on how to proceed on to get the StartDevice to be called will
be greatly appreciated.

Regards,
NHKR

Doron Holan [MSFT]

unread,
Oct 7, 2009, 5:54:18 PM10/7/09
to
the ability to do hw resource arbitration and assignment is not publicly
documented. what you are trying to do is pretty unstable and will
definitely fail on 64 bit windows. why do you need ot assign hw resources
for a virtual device?

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Naresh" <nar...@gmail.com> wrote in message
news:57394a0a-45cb-4f15...@t11g2000prh.googlegroups.com...

Naresh

unread,
Oct 8, 2009, 4:51:19 AM10/8/09
to
We are in the process of developing a NIC driver, but we want to
simulate the NIC hardware by providing the resources to virtual NIC
driver.

Are u telling that, providing resources to a driver on behalf of the
PCI will make the system unstable? But from what i see, the PnP
Manager is not validating the resources provided by the bus driver, it
just passes the resources blindly to the NIC driver. Im a bit confused
here, how it would make the system unstable.

NHKR

----

On Oct 8, 2:54 am, "Doron Holan [MSFT]"

Doron Holan [MSFT]

unread,
Oct 8, 2009, 2:43:38 PM10/8/09
to
yes, it will make the system unstable. only pci can hand out pci resources,
you cannot do this outside of PCI.sys (not) knowing about the device

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Naresh" <nar...@gmail.com> wrote in message

news:17ee2a74-8a1b-400e...@u36g2000prn.googlegroups.com...

Naresh

unread,
Oct 9, 2009, 12:44:36 AM10/9/09
to
Doron,

Thanks a lot

--
NHKR
(Microsoft India Community Star)


On Oct 8, 11:43 pm, "Doron Holan [MSFT]"

0 new messages