Hi, I want to ensure that my driverentry has been
paged out after use.
A couple of examples suggest that I use #pragma
code_seg(“init”) or $pragma code_seg(“paged”). How
does this help?
Can/Should AddDevice be made pageable?
Rajeev
Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com/cricket/tracker.html
Why? What do you benefit by marking initialization code and data segments as
PAGEDXXXX? Maybe I am just lazy … or maybe I have other issues in my
drivers with a higher priority than setting LOCKEDXXXX and PAGEDXXXX, but
few if any of my drivers are delivered with DriverEntry set in this manner.
If anything it’s more a problem. Case in point: I recently ported a driver
that was built using Walter Oney’s VS IDE wizard to the XP DDK using Roddy’s
DDKBUILD. The template that Walter’s wizard produces defines it’s own
PAGED_CODE() macro, but does NOT undef the one defined in the DDK.
The XP build puked because of the dupe. Minor … true, but none the less a
PITA.
There was a brief discussion on this a week or so ago, the gist of which was
that this really is a waist of effort when you consider the benefits. Now if
you have a 1 meg DriverEntry … naaa that ain’t coding that’s a sermon.
–
Gary G. Little
xxxxx@broadstor.com
xxxxx@inland.net
“Rajeev Rao” wrote in message news:xxxxx@ntdev…
>
> Hi, I want to ensure that my driverentry has been
> paged out after use.
>
> A couple of examples suggest that I use #pragma
> code_seg(“init”) or $pragma code_seg(“paged”). How
> does this help?
>
> Can/Should AddDevice be made pageable?
>
> Rajeev
>
> ________________________________________________________________________
> Everything you always wanted to know about cars and bikes,now
> at: http://in.autos.yahoo.com/cricket/tracker.html
>
>
> Why? What do you benefit by marking initialization code and data segments as
PAGEDXXXX? Maybe I am just lazy … or maybe I have other issues in my
drivers with a higher priority than setting LOCKEDXXXX and PAGEDXXXX, but
It is very easy and provides extra check for IRQL correctness.
Max
At 05.22 17/05/2002, you wrote:
Hi, I want to ensure that my driverentry has been paged out after use.
A couple of examples suggest that I use #pragma code_seg(“init”) or
$pragma code_seg(“paged”). How does this help?
Everything that resides in a section with a name beginning with “PAGE” will
be pageable