2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
5 * PURPOSE: Routines for controling pools
6 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
8 * CSH 01/08-2000 Created
14 PVOID
PoolAllocateBuffer(
17 * FUNCTION: Returns a buffer from the free buffer pool
19 * Pointer to buffer, NULL if there was not enough
25 /* FIXME: Get buffer from a free buffer pool with enough room */
27 Buffer
= ExAllocatePool(NonPagedPool
, Size
);
29 TI_DbgPrint(DEBUG_MEMORY
, ("Allocated (%i) bytes at (0x%X).\n", Size
, Buffer
));
38 * FUNCTION: Returns a buffer to the free buffer pool
40 * Buffer = Buffer to return to free buffer pool
43 /* FIXME: Put buffer in free buffer pool */
45 TI_DbgPrint(DEBUG_MEMORY
, ("Freeing buffer at (0x%X).\n", Buffer
));
50 PVOID
TcpipAllocateFromNPagedLookasideList( PNPAGED_LOOKASIDE_LIST List
) {
51 return ExAllocateFromNPagedLookasideList( List
);
54 VOID
TcpipFreeToNPagedLookasideList( PNPAGED_LOOKASIDE_LIST List
,
56 ExFreeToNPagedLookasideList( List
, Thing
);