Re: NDIS Allocate memory fail???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



what exact NDIS API do you call to allocate memory?

Also as somebody else suggested, since application should have access to
this memory, it is better to have application allocate the memory, probe and
lock the memory in your driver (to make it non pageable and mapped to system
address space) and use system address in your driver.

You need to lock the memory if you may access it at dispatch level which is
very likely the case.

-ali
This posting is provided "AS IS" with no warranties, and confers no rights
"Anand Choubey" <AnandChoubey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:0E88A603-DC60-4C04-8FA1-ACCFA83AAE57@xxxxxxxxxxxxxxxx
Hi,

I am writing a NDIM IM driver. In order to communicate with user land
application, I allocate 3 buffers on nonpaged memory 10 MB each.

My driver gets success to allocate memory in first time only for all buffers.
Next time on wards, driver gets fail to allocate memory. I am very much
sure that there is no any memory leak which I have tested.

Please suggest me what should I do??

Configuration OS:: XP SP2
Ram:: 504 MB (8 MB shared)
Processor:: 2.8 GHz Pentium
--
With regards
thanks
Anand Choubey

.



Relevant Pages

  • Re: Network memory allocation failures
    ... I figured there might memory exhaustion of sorts, ... driver itself, that could cause the OP's problem. ... Write failed: Cannot allocate memory ...
    (freebsd-stable)
  • Re: Allocating Page Aligned Memory in User Space
    ... > Does anyone know how to allocate memory like this without having to ... > write a (kernel level) driver? ... You could write a small dummy driver, ...
    (comp.os.linux.development.system)
  • sata_sil24 memory fragmentation issues
    ... Swap cache stats: add 0, delete 0, find 0/0 ... I am seeing a few different issues - one, the SATA driver is failing to allocate memory, even though there is memory available. ...
    (Linux-Kernel)
  • Re: r8169: cannot allocate memory
    ... "ifconfig" die Karte gar nicht erst an; ... allocate memory) ... The problem is that the driver ...
    (de.comp.os.unix.linux.hardware)
  • [RFCv5 7/9] mm: vcm: Virtual Contiguous Memory framework added
    ... platforms with no MMU. ... sysfs class driver interface to enable/disable a video output device. ... +This document covers how to use the Virtual Contiguous Memory Manager ...
    (Linux-Kernel)