Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IRQL in IRP_MJ_XXX routines

 
   Windows XP (Home) -> XP Device Driver RSS
Next:  File List Sort Order In Open Dialog Box Is Not Re..  
Author Message
QuasiCodo

External


Since: Apr 05, 2007
Posts: 3



(Msg. 1) Posted: Thu Jun 28, 2007 10:56 am
Post subject: IRQL in IRP_MJ_XXX routines
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

I had a person ask me about the IRLQ at which the IRP_MJ_XXX routines
were called. I said I wasn't sure, but they can be called at
DISPATCH_LEVEL and PASSIVE_LEVEL. I look at the on line MSDN Lib and
found that the IRP_MJ_CLOSE is the only one that specifically says it is
called at PASSIVE_LEVEL.

Can anyone enlighten me on the details?

((&->

 >> Stay informed about: IRQL in IRP_MJ_XXX routines 
Back to top
Login to vote
Gary G. Little

External


Since: Jan 04, 2006
Posts: 16



(Msg. 2) Posted: Thu Jun 28, 2007 10:56 am
Post subject: Re: IRQL in IRP_MJ_XXX routines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The general rule of thumb is that they are called at PASSIVE_LEVEL, but ...
I think you will find the wise choice is to code like they have been called
at > PASSIVE, if you can. The reason is that someone who "knows what they
are doing, and of course knows better" may call you from another device
driver at DISPATCH_LEVEL. A check for IRQL and an ASSERT is one means I have
seen to protect against such "know-it-alls". Smile

There is no hard and fast rule that IRP_MJ_XXXX routines will be called at
PASSIVE. They should be, but you can get surprised.

--
The personal opinion of
Gary G. Little

"QuasiCodo" <QuasiCodo.TakeThisOut@Yahoo.com> wrote in message
news:%23mcMNSZuHHA.3476@TK2MSFTNGP02.phx.gbl...
>I had a person ask me about the IRLQ at which the IRP_MJ_XXX routines were
>called. I said I wasn't sure, but they can be called at DISPATCH_LEVEL and
>PASSIVE_LEVEL. I look at the on line MSDN Lib and found that the
>IRP_MJ_CLOSE is the only one that specifically says it is called at
>PASSIVE_LEVEL.
>
> Can anyone enlighten me on the details?
>
> ((&->

 >> Stay informed about: IRQL in IRP_MJ_XXX routines 
Back to top
Login to vote
Display posts from previous:   
   Windows XP (Home) -> XP Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]