ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

pool.cpp
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:       See COPYING in the top level directory
00003  * PROJECT:         ReactOS Kernel Streaming
00004  * FILE:            drivers/wdm/audio/backpln/portcls/pool.cpp
00005  * PURPOSE:         Memory functions
00006  * PROGRAMMER:      Johannes Anderwald
00007  */
00008 
00009 #include "private.hpp"
00010 
00011 PVOID
00012 AllocateItem(
00013     IN POOL_TYPE PoolType,
00014     IN SIZE_T NumberOfBytes,
00015     IN ULONG Tag)
00016 {
00017     PVOID Item = ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag);
00018     if (!Item)
00019         return Item;
00020 
00021     RtlZeroMemory(Item, NumberOfBytes);
00022     return Item;
00023 }
00024 
00025 VOID
00026 FreeItem(
00027     IN PVOID Item,
00028     IN ULONG Tag)
00029 {
00030 
00031     ExFreePoolWithTag(Item, Tag);
00032 }

Generated on Sun May 27 2012 04:28:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.