none
continuous memory allocation RRS feed

  • Question

  • Hi,I am writing miniport driver.I have a requirement to allocate the continuous memory that is used by both Host and PCIe .The allocation size is 5MB.Can anyone let me know how to allocate the memory.I used the NdisMAllocateSharedMemory(). it is crashing.Is this the right api? if so how I should call it.

    Thanks,

    Tuesday, July 8, 2014 7:33 AM

All replies

  • post the output of !analyze -v with correct symbols to see what is going wrong

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, July 8, 2014 7:35 AM
  • hi,

    The api crashed because, the parameters were not initialized properly.I have initialized them.I tried to allocate 256 bytes.But it failed to allocate.The Virtual address and Physical address are 0.How to allocate memory using this api.

    Thanks

    Tuesday, July 8, 2014 9:10 AM