1 /* 2 * PROJECT: ReactOS Universal Audio Class Driver 3 * LICENSE: GPL - See COPYING in the top level directory 4 * FILE: drivers/usb/usbaudio/pool.c 5 * PURPOSE: USB Audio device driver. 6 * PROGRAMMERS: 7 * Johannes Anderwald (johannes.anderwald@reactos.org) 8 */ 9 #include "usbaudio.h" 10 11 PVOID 12 NTAPI 13 AllocFunction( 14 IN ULONG ItemSize) 15 { 16 PVOID Item = ExAllocatePoolWithTag(NonPagedPool, ItemSize, USBAUDIO_TAG); 17 if (Item) 18 { 19 // zero item 20 RtlZeroMemory(Item, ItemSize); 21 } 22 23 // done 24 return Item; 25 } 26 27 VOID 28 NTAPI 29 FreeFunction( 30 IN PVOID Item) 31 { 32 /* free item */ 33 ExFreePoolWithTag(Item, USBAUDIO_TAG); 34 } 35 36