Hi all,
I'm not sure in following question ... Is it correct to use
ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
PASSIVE_LEVEL) or there is an other Ndis specific function?

Thank's for answer
Michal

Re: NDIS and Memory by Maxim

Maxim
Thu May 26 07:18:41 CDT 2005

IIRC there is NdisAllocateMemory or something similar.

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

"Michal Filka" <michal.filka@atlas.cz> wrote in message
news:O6rVmFdYFHA.3280@TK2MSFTNGP09.phx.gbl...
> Hi all,
> I'm not sure in following question ... Is it correct to use
> ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
> PASSIVE_LEVEL) or there is an other Ndis specific function?
>
> Thank's for answer
> Michal
>
>



Re: NDIS and Memory by Michal

Michal
Thu May 26 08:07:47 CDT 2005

I found only NdisAllocateMemory (obsolete) and NdisAllocateMemoryWithTag.
Both of them allocate nonpaged memory ...

Michal

"Maxim S. Shatskih" <maxim@storagecraft.com> pí¹e v diskusním pøíspìvku
news:eYhe%23zeYFHA.2756@tk2msftngp13.phx.gbl...
> IIRC there is NdisAllocateMemory or something similar.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "Michal Filka" <michal.filka@atlas.cz> wrote in message
> news:O6rVmFdYFHA.3280@TK2MSFTNGP09.phx.gbl...
> > Hi all,
> > I'm not sure in following question ... Is it correct to use
> > ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
> > PASSIVE_LEVEL) or there is an other Ndis specific function?
> >
> > Thank's for answer
> > Michal
> >
> >
>
>



RE: NDIS and Memory by pavel_a

pavel_a
Thu May 26 09:00:08 CDT 2005

"Michal Filka" wrote:
> Hi all,
> I'm not sure in following question ... Is it correct to use
> ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
> PASSIVE_LEVEL) or there is an other Ndis specific function?

Some time ago there was a document or erratum somewhere on WHDC or Ndistest
site that listed all functions allowed in each type of NDIS driver.
This list is what the kernel calls test uses, so it is the ultimate answer
what is permitted.
Try to find the current version of this list.

> Thank's for answer
> Michal
>

You're welcome
--PA

P.S. NdisAllocateMemoryWithTag would be fine, but there still is no
NdisFreeMemoryWithTag ( ~ ExFreePoolWithTag ) - so usefulness of it is
decreased. If your kind of driver allows ExAllocatePoolWithTag and you want
the tag match feature - use it.




Re: NDIS and Memory by Michal

Michal
Fri May 27 03:14:46 CDT 2005

> Some time ago there was a document or erratum somewhere on WHDC or
Ndistest
> site that listed all functions allowed in each type of NDIS driver.
> This list is what the kernel calls test uses, so it is the ultimate answer
> what is permitted.
> Try to find the current version of this list.

... I found such list in documentation of DDK (2003) ... ExAllocatePool is
in the list of prohibited functions. It should be used
NdisAllocateMemoryWithTag instead. However, this function doesn't support
allocation from pagedpool. Now, questions are:
1) is it forbidden to use paged memory in NDIS driver? or
2) is it permited to use ExAllocateMemoryWithTag, which isn't included in
the list?

Thank's for patient
Michal



Re: NDIS and Memory by iwub

iwub
Sun May 29 21:48:13 CDT 2005

NDIS recommend that use NdisAllocateMemoryWithTag() under XP or later, other
system use NdisAllocateMemrry()
Please check DDK for detailed.


"Michal Filka" <michal.filka@atlas.cz> дÈëÏûÏ¢ÐÂÎÅ:O6rVmFdYFHA.3280@TK2MSFTNGP09.phx.gbl...
> Hi all,
> I'm not sure in following question ... Is it correct to use
> ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
> PASSIVE_LEVEL) or there is an other Ndis specific function?
>
> Thank's for answer
> Michal
>
>