Question on IoRegisterPlugPlayNotification()

Hi,

I want to listen to events like volume arrival/removal. I use
**http:IoRegisterPlugPlayNotification
for this purpose. Have one question. When new device say new volume arrival
notification comes to my driver, is it possible that IOs are in progress on
this volume, or is it that only after all Notification calls finish (all
interested parties/event listeners informed) IOs are allowed on the volume?

Thanks,
Sunil</http:>

IOs can be in flight by the time you get your notification. Another driver could have received an arrival notification before yours, opened a handle and started to send io before you were told of the volume’s arrival.

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Sunil Patil
Sent: Wednesday, November 24, 2010 9:40 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Question on IoRegisterPlugPlayNotification()

Hi,

I want to listen to events like volume arrival/removal. I use IoRegisterPlugPlayNotification for this purpose. Have one question. When new device say new volume arrival notification comes to my driver, is it possible that IOs are in progress on this volume, or is it that only after all Notification calls finish (all interested parties/event listeners informed) IOs are allowed on the volume?

Thanks,
Sunil
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks for reply. On similar lines, for my PnP driver which is a UpperFilter
for volume, if AddDevice gets called because a new volume is
created/detected, is it incorrect to assume that no IOs are in flight on the
new volume.

What about boot time when my PnP driver is getting loaded and its AddDevice
is getting called for each volume in the system.

Thanks,
Sunil

On Wed, Nov 24, 2010 at 11:11 PM, Doron Holan wrote:

> IOs can be in flight by the time you get your notification. Another driver
> could have received an arrival notification before yours, opened a handle
> and started to send io before you were told of the volume?s arrival.
>
>
>
> d
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Sunil Patil
> Sent: Wednesday, November 24, 2010 9:40 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Question on IoRegisterPlugPlayNotification()
>
>
>
> Hi,
>
> I want to listen to events like volume arrival/removal. I use
> IoRegisterPlugPlayNotification for this purpose. Have one question. When new
> device say new volume arrival notification comes to my driver, is it
> possible that IOs are in progress on this volume, or is it that only after
> all Notification calls finish (all interested parties/event listeners
> informed) IOs are allowed on the volume?
>
> Thanks,
> Sunil
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

If you are using AddDevice to trigger then no I/O requests are in
flight.

Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

“Sunil Patil” wrote in message news:xxxxx@ntdev:

> Thanks for reply. On similar lines, for my PnP driver which is a UpperFilter
> for volume, if AddDevice gets called because a new volume is
> created/detected, is it incorrect to assume that no IOs are in flight on the
> new volume.
>
> What about boot time when my PnP driver is getting loaded and its AddDevice
> is getting called for each volume in the system.
>
> Thanks,
> Sunil
>
> On Wed, Nov 24, 2010 at 11:11 PM, Doron Holan wrote:
>
> > IOs can be in flight by the time you get your notification. Another driver
> > could have received an arrival notification before yours, opened a handle
> > and started to send io before you were told of the volume’s arrival.
> >
> >
> >
> > d
> >
> >
> >
> > From: xxxxx@lists.osr.com [mailto:
> > xxxxx@lists.osr.com] *On Behalf Of *Sunil Patil
> > Sent: Wednesday, November 24, 2010 9:40 AM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Question on IoRegisterPlugPlayNotification()
> >
> >
> >
> > Hi,
> >
> > I want to listen to events like volume arrival/removal. I use
> > IoRegisterPlugPlayNotification for this purpose. Have one question. When new
> > device say new volume arrival notification comes to my driver, is it
> > possible that IOs are in progress on this volume, or is it that only after
> > all Notification calls finish (all interested parties/event listeners
> > informed) IOs are allowed on the volume?
> >
> > Thanks,
> > Sunil
> > — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> > other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> > the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >

Is it possible for a non-PnP driver loading at boot-time to get an event or
some kind of notification (synchronous) (like IO-stacking complete or NTFS
volume being mounted) before IO actually starts on a volume or disk.

Thanks,
Sunil

On Wed, Nov 24, 2010 at 11:31 PM, Don Burn wrote:

> If you are using AddDevice to trigger then no I/O requests are in flight.
>
>
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
>
> “Sunil Patil” wrote in message news:xxxxx@ntdev:
>
>
> Thanks for reply. On similar lines, for my PnP driver which is a
>> UpperFilter
>> for volume, if AddDevice gets called because a new volume is
>> created/detected, is it incorrect to assume that no IOs are in flight on
>> the
>> new volume.
>>
>> What about boot time when my PnP driver is getting loaded and its
>> AddDevice
>> is getting called for each volume in the system.
>>
>> Thanks,
>> Sunil
>>
>> On Wed, Nov 24, 2010 at 11:11 PM, Doron Holan >> >wrote:
>>
>> > IOs can be in flight by the time you get your notification. Another
>> driver
>> > could have received an arrival notification before yours, opened a
>> handle
>> > and started to send io before you were told of the volume’s arrival.
>> >
>> >
>> >
>> > d
>> >
>> >
>> >
>> > From: xxxxx@lists.osr.com [mailto:
>> > xxxxx@lists.osr.com] *On Behalf Of *Sunil Patil
>> > Sent: Wednesday, November 24, 2010 9:40 AM
>> > To: Windows System Software Devs Interest List
>> > Subject: [ntdev] Question on IoRegisterPlugPlayNotification()
>> >
>> >
>> >
>> > Hi,
>> >
>> > I want to listen to events like volume arrival/removal. I use
>> > IoRegisterPlugPlayNotification for this purpose. Have one question. When
>> new
>> > device say new volume arrival notification comes to my driver, is it
>> > possible that IOs are in progress on this volume, or is it that only
>> after
>> > all Notification calls finish (all interested parties/event listeners
>> > informed) IOs are allowed on the volume?
>> >
>> > Thanks,
>> > Sunil
>> > — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
>> and
>> > other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> > the List Server section of OSR Online at
>> > http://www.osronline.com/page.cfm?name=ListServer
>> >
>> > —
>> > NTDEV is sponsored by OSR
>> >
>> > For our schedule of WDF, WDM, debugging and other seminars visit:
>> > http://www.osr.com/seminars
>> >
>> > To unsubscribe, visit the List Server section of OSR Online at
>> > http://www.osronline.com/page.cfm?name=ListServer
>> >
>>
>
>
> —
>
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

No, nothing like that exists. What problem are you trying to solve?

d

dent from a phpne with no keynoard


From: Sunil Patil
Sent: November 24, 2010 9:26 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Question on IoRegisterPlugPlayNotification()