Group:  English: Windows XP ยป microsoft.public.windowsxp.device_driver.dev
Thread: IRQL in IRP_MJ_XXX routines

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

IRQL in IRP_MJ_XXX routines
QuasiCodo <QuasiCodo[ at ]Yahoo.com> 28.06.2007 14:56:43
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?

((&->
Re: IRQL in IRP_MJ_XXX routines
"Gary G. Little" <gary.g.little[ at ]seagate.com> 28.06.2007 15:16:37
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". :)

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[ at ]Yahoo.com> wrote in message
news:%23mcMNSZuHHA.3476[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
>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?
>
> ((&->


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net