Unloading of NDIS 5.0 miniport driver

hi,
I am developing a NDIS 5.0 miniport driver for Intel 21143 based NIC for
windows2000. For this I am using the sample driver that came along with
the DDk (e100bex). I am facing a problem in unloading the driver.
When i insert the card, DriverEntry is called and then initialisation and
so on… but when i remove the card dynamically, the system is not
detecting it. Ideally the “halt” function of the driver should be called
when the card is removed, but that function is not called for reasons
unknown to me!!
Any idea why the Halt routine of a miniport driver is not called? Under
what circumstances does this happen? To give some better picture, the
driver is not functional in the sense that initialization is porper but
sending and receiving is not taking place. Does this have any impact on
driver unloading?
Hoping to find some answers,

Thanks and regards
Srikanth

> so on… but when i remove the card dynamically

Dymanically? A PCI card?

Max

When I did hardware development, many moons ago, we had boards that we could
plug into a PCI bus slot that gave us hot-plugging ability. I tested many a
video board with those addins, we could plug the video board in and out at
will.

Alberto.

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Monday, August 05, 2002 4:53 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Unloading of NDIS 5.0 miniport driver

so on… but when i remove the card dynamically

Dymanically? A PCI card?

Max


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

The company I do a *lot* of consulting for, Stratus Technologies,
(www.stratus.com) sells x86 based fault tolerant systems that include
hot plug PCI busses (not compact pci,) and it is a fundamental part of
the system requirements for this platform that PCI busses and individual
PCI bus slots can come and go without interruption of system service.
The assumption by a PCI bus hardware device driver developer that their
device cannot be removed dynamically is not a good design assumption. It
is unfortunately a very common design assumption, as we have not seen
any off the shelf PCI device drivers so far, in three years of testing,
that fully support surprise removal.

=====================
Mark Roddy
Windows XP/2000/NT Consultant, Microsoft MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Moreira, Alberto
Sent: Monday, August 05, 2002 5:38 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Unloading of NDIS 5.0 miniport driver

When I did hardware development, many moons ago, we had
boards that we could plug into a PCI bus slot that gave us
hot-plugging ability. I tested many a video board with those
addins, we could plug the video board in and out at will.

Alberto.

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Monday, August 05, 2002 4:53 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Unloading of NDIS 5.0 miniport driver

> so on… but when i remove the card dynamically

Dymanically? A PCI card?

Max


You are currently subscribed to ntdev as:
xxxxx@compuware.com To unsubscribe send a blank
email to %%email.unsub%%

The contents of this e-mail are intended for the named
addressee only. It contains information that may be
confidential. Unless you are the named addressee or an
authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify
us immediately and then destroy it.


You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%

hello guys,
i am sorry for the misinformation, it is a driver for a pc card for
laptop to connect to the network.
When i remove the device out of the laptop, the driver unloading is not
taking place. Ideally MiniportHalt should be called by NDIS. But that is
not being called.
any idea as to what may be the reason?

Rgds
Srikanth

MiniportHalt will not be called unless all packets sent to U’r SendHandler
is returned to Ndis.

Best Regards
Anandhi

-----Original Message-----
From: Srikanth [mailto:xxxxx@yahoo.com]
Sent: Tuesday, August 06, 2002 9:37 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Unloading of NDIS 5.0 miniport driver

hello guys,
i am sorry for the misinformation, it is a driver for a pc card for
laptop to connect to the network.
When i remove the device out of the laptop, the driver
unloading is not
taking place. Ideally MiniportHalt should be called by NDIS.
But that is
not being called.
any idea as to what may be the reason?

Rgds
Srikanth


You are currently subscribed to ntdev as: xxxxx@ctd.hcltech.com
To unsubscribe send a blank email to %%email.unsub%%