NdisAllocateMemoryWithTagPriority (Compact 7)
3/12/2014
NDIS drivers call this function to allocate a pool of memory from the nonpaged pool.
Syntax
PVOID
NdisAllocateMemoryWithTagPriority(
IN NDIS_HANDLE NdisHandle,
IN UINT Length,
IN ULONG Tag,
IN EX_POOL_PRIORITY Priority
);
Parameters
- NdisHandle
An NDIS handle that the caller obtained during initialization.
- Length
The size to be allocated, in bytes.
- Tag
A string, delimited by single quotation marks, with up to four characters, usually specified in reversed order. The NDIS-supplied default tag for this call is 'maDN'. However, the caller can override this default by supplying an explicit value.
- Priority
The importance of this request
Return Value
NdisAllocateMemoryWithTagPriority returns a pointer to a base virtual address of the allocated memory, or NULL if sufficient nonpaged memory is currently unavailable.
Remarks
A call to NdisAllocateMemoryWithTagPriority is the same as calling the NdisAllocateMemoryWithTag, function except that NdisAllocateMemoryWithTagPriority allows the caller to supply the priority of the request.
Requirements
Header |
ndis.h |