Hi

How much memory can be used for global variables in a driver ?

Re: Global variables by Don

Don
Thu Aug 11 11:53:20 CDT 2005

There is no fixed limit. This is just part of the image.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply


"Omer" <Omerb99@gmail.com> wrote in message
news:1123779062.307172.79220@g47g2000cwa.googlegroups.com...
> Hi
>
> How much memory can be used for global variables in a driver ?
>



Re: Global variables by Doron

Doron
Fri Aug 12 02:21:59 CDT 2005

if its huge, the image load may fail b/c the OS cannot find enough VA space
to map in the driver's data.

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:eO9V6UpnFHA.3316@tk2msftngp13.phx.gbl...
> There is no fixed limit. This is just part of the image.
>
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
> "Omer" <Omerb99@gmail.com> wrote in message
> news:1123779062.307172.79220@g47g2000cwa.googlegroups.com...
>> Hi
>>
>> How much memory can be used for global variables in a driver ?
>>
>
>



Re: Global variables by Stephan

Stephan
Fri Aug 12 03:33:51 CDT 2005

I guess from a pragmatic point of view, there is a 2GB limit since
kernel space resides in the upper 2GB. True for 32-bit systems.

All global and static variables reside in non-paged memory.

Keep in mind that all drivers must share this same space.

Stephan
---
Doron Holan [MS] wrote:
> if its huge, the image load may fail b/c the OS cannot find enough VA space
> to map in the driver's data.
>
> 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:eO9V6UpnFHA.3316@tk2msftngp13.phx.gbl...
> > There is no fixed limit. This is just part of the image.
> >
> >
> > --
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > Remove StopSpam from the email to reply
> >
> >
> > "Omer" <Omerb99@gmail.com> wrote in message
> > news:1123779062.307172.79220@g47g2000cwa.googlegroups.com...
> >> Hi
> >>
> >> How much memory can be used for global variables in a driver ?


Re: Global variables by Stephan

Stephan
Fri Aug 12 03:38:06 CDT 2005

Stephan Wolf [MVP] wrote:
> I guess from a pragmatic point of view, there is a 2GB limit since
> kernel space resides in the upper 2GB.

..unless you set the /3GB option in "boot.ini". See also the new
/USERVA option, e.g.

http://support.microsoft.com/default.aspx?scid=kb;en-us;810371

Stephan