Re: Serial Upper Filter Driver Help Required

From: Old Codger (OldCodger101_at_hotmail.com)
Date: 09/27/04


Date: 27 Sep 2004 03:43:14 -0700


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message news:<eYLI2dDoEHA.3488@TK2MSFTNGP12.phx.gbl>...
> > Can you explain this further please? I had thought that my driver
> > could be loaded and attached to the stack and then detached and
> > unloaded again as long as nothing else has attached on top of it.
>
> No. You need to shutdown the stack to detach the driver.

What does IoDetachDevice do then?
Does this not return the stack to the same state it was in before I
attached my device?



Relevant Pages

  • Re: Serial Upper Filter Driver Help Required
    ... >> Does this not return the stack to the same state it was in before I ... This driver is dynamically loaded by it's associated application by ... correct COM port) and "stopped" by means of special IOCTLS ... but when I detach the driver the port is no longer available, ...
    (microsoft.public.development.device.drivers)
  • Re: current panics when Netgear WG511T ejected
    ... just one dhcp-assigned unicast addr. ... Even if you have no multicast addresses explicitly configured by yourself or any application, the multicast code is always used on any system configured with INET. ... Because the hardware is being ejected, the netinet part of the stack won't see the detach first, but net will, and this is where the panic is happening. ...
    (freebsd-current)
  • Re: Whats the secmantics of IoDetachDevice?
    ... C's driver will have its FastIoDetachDevice callback called, ... and should detach and destroy C in this callback. ... then A is sure to be removed from the stack. ...
    (microsoft.public.development.device.drivers)
  • Re: Whos in charge of AddRefing?
    ... STDMETHOD(IChild** ppChild) ... stack, in the out'ted variable ... Detach is called on a temporary CComPtr object ... The net effect is equivalent to CopyTo, ...
    (microsoft.public.vc.atl)
  • Re: Serial Upper Filter Driver Help Required
    ... You need to shutdown the stack to detach the driver. ... Maxim Shatskih, Windows DDK MVP ...
    (microsoft.public.development.device.drivers)