Re: Size of contiguous memory

From: Elliott (Elliott__T_at_hotmail.com)
Date: 07/06/04


Date: Tue, 6 Jul 2004 14:44:43 +0800

Hi Maxim,

    Could you give me some hints about which item(s) of the
DEVICE_DESCRIPTION structure can affect the size of contiguous memory
allocation? and how it affected if possible. Thankyou very much,

Regards,
Elliott

"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:#mJ#3KyYEHA.2456@TK2MSFTNGP10.phx.gbl...
> IIRC AllocateCommonBuffer behavior depends on DEVICE_DESCRIPTION
passed to
> IoGetDmaAdapter.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>
> "Elliott" <Elliott__T@hotmail.com> wrote in message
> news:OcVI2HyYEHA.1264@TK2MSFTNGP11.phx.gbl...
> > Hi all,
> >
> > Is it possible to allocate a 512KByte contiguous memory in the WDM
> > driver? I have tried the AllocateCommonBuffer function (in wdm.h) to
> > allocate these memory but it can max. allocate a around 64KByte buffer.
By
> > contrast, If I'm using the MmAllocateContiguousMemory function (in
ntddk.h),
> > it can let me allocate even more than 1MByte buffer. What is the
difference
> > on them? Can I use MmAllocateContiguousMemory function in WDM driver? or
Is
> > there any other function can allocate such large contiguous memory in
WDM
> > driver?
> >
> > Thanks in advance,
> >
> > Regards,
> > Elliott
> > WDM driver beginner
> >
> >
>
>



Relevant Pages

  • Re: Any alternative to the MmAllocateContiguousMemory?
    ... As I found the MmAllocateContiguousMemory function is not available in WDM architecture, does any alternative to it and provide contiguous memory allocation from non-paged pool? ...
    (microsoft.public.development.device.drivers)
  • Re: SSH From within a Jail
    ... >> Host key verification failed. ... > allocation.) ... > I don't know the ramifications of that, ...
    (freebsd-hackers)
  • Re: malloc
    ... If I use both the calls ie. malloc and realloc together, how the allocated memory will be ... Again, an old pointer value, valid for the first allocation of p, will ...
    (comp.lang.c)
  • Re: malloc
    ... If I use both the calls ie. malloc and realloc together, how the allocated memory will be ... Again, an old pointer value, valid for the first allocation of p, will ...
    (comp.lang.c)
  • Re: Windows array allocation problem
    ... If I know for sure how much will be unavailable, I can set the maximum allocation accordingly. ... DSOs/DLLs - which can be dynamically loaded at various addresses at ... it seems that allocating any array to any size is a risky business that might suddenly fail for lack of adequate contiguous memory. ...
    (comp.lang.fortran)