DbgPrint AND IRQL

Hi,

What is the IRQL to use DbgPrint() ? Nothing is said in the DDK
documentation.

When I call it at DISPATCH_LEVEL I get “Pageable code called at IRQL 2”

The C line is the following:

Extension=(PDEVICE_EXTENSION)DeviceObject->DeviceExtension;
DbgPrint(“***** %ws: Connect event received\n”,Extension->DosName.Buffer);

and DosName is allocated in a NonPagedPool:

Extension->DosName.Buffer = ExAllocatePool(NonPagedPool, BuuferLength);

wchar or wide string operations requires passive level. Otherwise dispatch
is OK. And IIRC this is clearly statuated somewhere in DDK .

Dan

----- Original Message -----
From: “Nicolas Mugnier”
Newsgroups: ntdev
To: “Windows System Software Developers Interest List”
Sent: Wednesday, September 10, 2003 5:01 PM
Subject: [ntdev] DbgPrint AND IRQL

> Hi,
>
> What is the IRQL to use DbgPrint() ? Nothing is said in the DDK
> documentation.
>
> When I call it at DISPATCH_LEVEL I get “Pageable code called at IRQL 2”
>
> The C line is the following:
>
> Extension=(PDEVICE_EXTENSION)DeviceObject->DeviceExtension;
> DbgPrint(" ***** %ws: Connect event received\n",Extension->DosName.Buffer);
>
> and DosName is allocated in a NonPagedPool:
>
> Extension->DosName.Buffer = ExAllocatePool(NonPagedPool, BuuferLength);
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

" IIRC … somewhere" means not an obvious location (hidden).

I wish the msdn search engine could handle queries like all high-tech
equipment in hollwood productions:

User types ( or dictates): ‘Show DDK-Docs where IQRL of DbgPrint is explained’

some beeps later … only one page of Information appears that has
exactly the information the user wanted ( or “Access denied” flashes).

Norbert.

“If it jams, force it. If it breaks, it needed replacing anyway.”
---- snip ----

is OK. And IIRC this is clearly statuated somewhere in DDK .

Dan
---- snip ----

The answer is somewhere here :
http://www.osronline.com/lists_archive/ntdev/thread422.html

Christophe

Thanks for your answers. I must have an old documentation file and I should
have searched deeper before posting.
It’s indeed written in the online documentation at msdn.com

“IASCI,CHRISTOPHE (HP-France,ex1)” <christophe.iasci> a écrit dans le
message de news:xxxxx@ntdev…
>
> The answer is somewhere here :
> http://www.osronline.com/lists_archive/ntdev/thread422.html
>
> Christophe
>
>
></christophe.iasci>

“IIRC somewhere” can be a very meaningufull location. I couldnt remember a
full URL and I had no mood to open DDK
help to point user at. How about the “DbgPrint” reference itslf ? Or for
that matter, reiterated in references of KdPrint,
DbgPrintEx, KdPrintEx . Is this location obivious enough ?

> I wish the msdn search engine could handle …

Just read your DDK help carefully.

Dan

----- Original Message -----
From: “Norbert Kawulski”
To: “Windows System Software Developers Interest List”
Sent: Wednesday, September 10, 2003 5:41 PM
Subject: [ntdev] Re: DbgPrint AND IRQL

> " IIRC … somewhere" means not an obvious location (hidden).
>
> I wish the msdn search engine could handle queries like all high-tech
> equipment in hollwood productions:
>
> User types ( or dictates): ‘Show DDK-Docs where IQRL of DbgPrint is
explained’
>
> some beeps later … only one page of Information appears that has
> exactly the information the user wanted ( or “Access denied” flashes).
>
> Norbert.
> --------
> “If it jams, force it. If it breaks, it needed replacing anyway.”
> ---- snip ----
> > is OK. And IIRC this is clearly statuated somewhere in DDK .
>
> > Dan
> ---- snip ----
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

O really now, don’t be silly. The display would pound it’s way out one
character at a time at about 80 characters per second all the while sounding
like a teletype. All this is happening while you “virtually” navigate
through some kind of a Picasso maze of colors and what looks like IC’s on
circuit boards.

Hollywood couldn’t find its ass in a bucket of bits if it were sitting on
it. :slight_smile:


Gary G. Little
Seagate Technologies, LLC

“Norbert Kawulski” wrote in message news:xxxxx@ntdev…
>
> " IIRC … somewhere" means not an obvious location (hidden).
>
> I wish the msdn search engine could handle queries like all high-tech
> equipment in hollwood productions:
>
> User types ( or dictates): ‘Show DDK-Docs where IQRL of DbgPrint is
explained’
>
> some beeps later … only one page of Information appears that has
> exactly the information the user wanted ( or “Access denied” flashes).
>
> Norbert.
> --------
> “If it jams, force it. If it breaks, it needed replacing anyway.”
> ---- snip ----
> > is OK. And IIRC this is clearly statuated somewhere in DDK .
>
> > Dan
> ---- snip ----
>
>
>