ReactOS  0.4.14-dev-376-gaedba84
pool.c File Reference
#include "usbaudio.h"
Include dependency graph for pool.c:

Go to the source code of this file.

Functions

PVOID NTAPI AllocFunction (IN ULONG ItemSize)
 
VOID NTAPI FreeFunction (IN PVOID Item)
 

Function Documentation

◆ AllocFunction()

PVOID NTAPI AllocFunction ( IN ULONG  ItemSize)

Definition at line 13 of file pool.c.

15 {
17  if (Item)
18  {
19  // zero item
20  RtlZeroMemory(Item, ItemSize);
21  }
22 
23  // done
24  return Item;
25 }
#define USBAUDIO_TAG
Definition: usbaudio.h:13
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
static UCHAR ItemSize[4]
Definition: parser.c:16
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261

◆ FreeFunction()

VOID NTAPI FreeFunction ( IN PVOID  Item)

Definition at line 29 of file pool.c.

31 {
32  /* free item */
34 }
#define USBAUDIO_TAG
Definition: usbaudio.h:13
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099