Re: Size of contiguous memory

From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 07/06/04


Date: Tue, 6 Jul 2004 10:34:36 +0400


    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: Looking for KMDF alternative to MmAllocateContiguousMemorySpecifyCache
    ... There is no direct KMDF equivalent of this function. ... I don't need contiguous memory. ... Since the buffer I'm planning to allocate is not exactly small I want ... Now thinking about it, may be, I should create TWO DMA enabler objects, ...
    (microsoft.public.development.device.drivers)
  • Re: Kmalloc
    ... >>> Can any one help in knowing whether Kmalloc will always allocate ... >>> contiguous memory. ... some reason, not "kmalloc", thus changing the sense of the question. ... Kmalloc does deliver contiguous lumps of underlying physical memory even ...
    (comp.os.linux.development.system)
  • Re: contiguous memory allocation problem
    ... For example I noticed that FreeBSD was unable to allocate ... 350kbytes of contiguous memory after that I had run "konqueror", the KDE web ... browser and various other memory consuming applications for a while. ...
    (freebsd-hackers)
  • Re: AllocateCommonBuffer slow on AMD Opteron
    ... physical memory is too fragmented at the time you allocate the buffer. ... suballocate my contiguous memory from that slab. ...
    (microsoft.public.development.device.drivers)