Re: Crash when calling NdisMIndicateReceiveNetBufferLists



1. Copy packet data from incoming NetBufferList to a buffer on the stack

Large stack consumption by kernel mode code is a very bad idea.

Please allocate the memory.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: The need to call MmProbeAndLockPages
    ... maxim@xxxxxxxxxxxxxxxx http://www.storagecraft.com "Daniel" wrote in message ... Each CPU needs to access the other's allocated memory directly> through the bridge. ... >> Maxim Shatskih, Windows DDK MVP ...
    (microsoft.public.development.device.drivers)
  • Re: The need to call MmProbeAndLockPages
    ... Each CPU needs to access the other's allocated memory directly ... If the memory is shared localy, I do not need to allocate a ... The driver is a driver for a PCI bridge chip to ... >>> Maxim Shatskih, Windows DDK MVP ...
    (microsoft.public.development.device.drivers)
  • Re: lock paged memory pages
    ... Yes, this memory is nonpaged, but the limit on it is by far more ... Maxim Shatskih, Windows DDK MVP ... MmAllocatePagesForMdl is from the nonPaged pool and this is exactly what i'm ...
    (microsoft.public.development.device.drivers)
  • Re: 32bit OS cannot see 4GB of RAM on modern chipset
    ... Use Server 2003 (at least Std sees all memory, dunno on Web) or any 64bit ... Maxim Shatskih, Windows DDK MVP ...
    (microsoft.public.development.device.drivers)
  • Re: 32bit OS cannot see 4GB of RAM on modern chipset
    ... Maxim Shatskih, Windows DDK MVP ... Tim Roberts, timr@xxxxxxxxx ... This is because XP can only reports 2GB of memory. ...
    (microsoft.public.development.device.drivers)