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
13 PVOID
PoolAllocateBuffer(
16 * FUNCTION: Returns a buffer from the free buffer pool
18 * Pointer to buffer, NULL if there was not enough
24 /* FIXME: Get buffer from a free buffer pool with enough room */
26 Buffer
= malloc(Size
);
28 TI_DbgPrint(DEBUG_MEMORY
, ("Allocated (%i) bytes at (0x%X).\n", Size
, Buffer
));
37 * FUNCTION: Returns a buffer to the free buffer pool
39 * Buffer = Buffer to return to free buffer pool
42 /* FIXME: Put buffer in free buffer pool */
44 TI_DbgPrint(DEBUG_MEMORY
, ("Freeing buffer at (0x%X).\n", Buffer
));
49 PVOID
TcpipAllocateFromNPagedLookasideList( PNPAGED_LOOKASIDE_LIST List
) {
50 return PoolAllocateBuffer( List
->Size
);
53 VOID
TcpipFreeToNPagedLookasideList( PNPAGED_LOOKASIDE_LIST List
,
55 PoolFreeBuffer( Thing
);