mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
35 lines
667 B
C
35 lines
667 B
C
/*
|
|
* PROJECT: ReactOS Universal Audio Class Driver
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: drivers/usb/usbaudio/pool.c
|
|
* PURPOSE: USB Audio device driver.
|
|
* PROGRAMMERS:
|
|
* Johannes Anderwald (johannes.anderwald@reactos.org)
|
|
*/
|
|
#include "usbaudio.h"
|
|
|
|
PVOID
|
|
NTAPI
|
|
AllocFunction(
|
|
IN ULONG ItemSize)
|
|
{
|
|
PVOID Item = ExAllocatePoolWithTag(NonPagedPool, ItemSize, USBAUDIO_TAG);
|
|
if (Item)
|
|
{
|
|
// zero item
|
|
RtlZeroMemory(Item, ItemSize);
|
|
}
|
|
|
|
// done
|
|
return Item;
|
|
}
|
|
|
|
VOID
|
|
NTAPI
|
|
FreeFunction(
|
|
IN PVOID Item)
|
|
{
|
|
/* free item */
|
|
ExFreePoolWithTag(Item, USBAUDIO_TAG);
|
|
}
|
|
|