Re: newbie: ExAllocatePoolWithTag
From: Gary G. Little (gglittle.nospam_at_sbcglobal.net)
Date: 08/14/04
- Next message: Gary G. Little: "Re: newbie: ExAllocatePoolWithTag"
- Previous message: Gary G. Little: "Re: Link errors using ddk with Visual C++ v6.0"
- In reply to: Don Burn: "Re: newbie: ExAllocatePoolWithTag"
- Next in thread: Maxim S. Shatskih: "Re: newbie: ExAllocatePoolWithTag"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 14 Aug 2004 19:43:38 GMT
Rule of thumb for IRQL ... if you raise it, you can lower it. If your
DISPATCH routine is called at >= DISPATCH_LEVEL you cannot lower it, but you
should have a serious talk with they who called you at that level. If I am
not mistaken, Driver Verifier will catch you on this one if you do, and I
don't think the checked build will take kindly to this. Even if neither of
them do, when you return after lowering IRQL they who called you will most
likely fail and have a hell of debug problem until they knock on your door
asking why you changed their IRQL.
-- The personal opinion of Gary G. Little "Don Burn" <burn@stopspam.acm.org> wrote in message news:10hskhpnucfm5e8@corp.supernews.com... > Well what is the situation that has you at DISPATCH_LEVEL? Are you holding > a spinlock, and if so could you use a different synchronization mechanism? > Are you doing something in a DPC routine and could you do it from a work > item so you are at passive? > > -- > Don Burn (MVP, Windows DDK) > Windows 2k/XP/2k3 Filesystem and Driver Consulting > Remove StopSpam from the email to reply > > "Sam Johnson" <SamJohnson@discussions.microsoft.com> wrote in message > news:4236C48E-9ED8-48A6-BA10-89B44258F7E5@microsoft.com... > > I need to store some amount of data for a short period of time (until a > user > > mode application 'collects' it from kernel mode). But as the size of the > > whole data can is different every time, I thought I'd be better off when I > > allocate the whole stuff in paged memory, as this won't fail that easily. > > By the way, is there any way to lower the IRQL? I know there are > appropriate > > functions for this, but I've heard that this would be very dangerous > > solution..... > > > > > > What do you think? > > > > Sam Johnson > > > > > > > > > > > > "Don Burn" wrote: > > > > > Doron, > > > > > > You're right, its been a long week. > > > > > > Don > > > > > > "Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message > > > news:OoMjoGigEHA.2916@TK2MSFTNGP12.phx.gbl... > > > > i think don meant there is no way to allocate PagedPool at dispatch > level > > > > :). > > > > > > > > d > > > > > > > > -- > > > > Please do not send e-mail directly to this alias. this alias is for > > > > newsgroup purposes only. > > > > This posting is provided "AS IS" with no warranties, and confers no > > > rights. > > > > > > > > > > > > "Don Burn" <burn@stopspam.acm.org> wrote in message > > > > news:10hsh0q8t9a9811@corp.supernews.com... > > > > > No, there is no way to allocate NonPagedPool at DISPATCH_LEVEL. So > the > > > > next > > > > > question is why do you need to allocate at dispatch? > > > > > > > > > > > > > > > -- > > > > > Don Burn (MVP, Windows DDK) > > > > > Windows 2k/XP/2k3 Filesystem and Driver Consulting > > > > > Remove StopSpam from the email to reply > > > > > > > > > > "Sam Johnson" <Sam Johnson@discussions.microsoft.com> wrote in > message > > > > > news:8B1F14A8-69E8-4C87-8494-294C1626EFDC@microsoft.com... > > > > > > Hello, > > > > > > > > > > > > I'm rather new to driver development and I've got a question: > > > > > > In my driver I use the ExAllocatePoolWithTag function. As I'm > running > > > on > > > > > > DISPATCH_LEVEL, I need to specifiy NonPagedPool as a pool type. > But as > > > > I'm > > > > > > allocating rather a big amount of memory, I'd prefer a paged pool > > > > > allocation. > > > > > > Is there any way to do this in DISPATCH_LEVEL? > > > > > > > > > > > > Thanks to everyone > > > > > > Sam > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
- Next message: Gary G. Little: "Re: newbie: ExAllocatePoolWithTag"
- Previous message: Gary G. Little: "Re: Link errors using ddk with Visual C++ v6.0"
- In reply to: Don Burn: "Re: newbie: ExAllocatePoolWithTag"
- Next in thread: Maxim S. Shatskih: "Re: newbie: ExAllocatePoolWithTag"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|