Commit 7e14df06 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntoskrnl.exe: Implement ExDeletePagedLookasideList.

parent fac63349
......@@ -2020,29 +2020,6 @@ NTSTATUS WINAPI ExCreateCallback(PCALLBACK_OBJECT *obj, POBJECT_ATTRIBUTES attr,
/***********************************************************************
* ExDeleteNPagedLookasideList (NTOSKRNL.EXE.@)
*/
void WINAPI ExDeleteNPagedLookasideList( PNPAGED_LOOKASIDE_LIST lookaside )
{
void *entry;
TRACE("(%p)\n", lookaside);
while ((entry = RtlInterlockedPopEntrySList(&lookaside->L.u.ListHead)))
lookaside->L.u5.FreeEx(entry, (LOOKASIDE_LIST_EX*)lookaside);
}
/***********************************************************************
* ExDeletePagedLookasideList (NTOSKRNL.EXE.@)
*/
void WINAPI ExDeletePagedLookasideList( PPAGED_LOOKASIDE_LIST lookaside )
{
FIXME("(%p) stub\n", lookaside);
}
/***********************************************************************
* ExFreePool (NTOSKRNL.EXE.@)
*/
void WINAPI ExFreePool( void *ptr )
......@@ -2112,6 +2089,32 @@ void WINAPI ExInitializePagedLookasideList(PPAGED_LOOKASIDE_LIST lookaside,
initialize_lookaside_list( &lookaside->L, allocate, free, PagedPool | flags, size, tag );
}
static void delete_lookaside_list( GENERAL_LOOKASIDE *lookaside )
{
void *entry;
while ((entry = RtlInterlockedPopEntrySList(&lookaside->u.ListHead)))
lookaside->u5.FreeEx(entry, (LOOKASIDE_LIST_EX*)lookaside);
}
/***********************************************************************
* ExDeleteNPagedLookasideList (NTOSKRNL.EXE.@)
*/
void WINAPI ExDeleteNPagedLookasideList( PNPAGED_LOOKASIDE_LIST lookaside )
{
TRACE( "%p\n", lookaside );
delete_lookaside_list( &lookaside->L );
}
/***********************************************************************
* ExDeletePagedLookasideList (NTOSKRNL.EXE.@)
*/
void WINAPI ExDeletePagedLookasideList( PPAGED_LOOKASIDE_LIST lookaside )
{
TRACE( "%p\n", lookaside );
delete_lookaside_list( &lookaside->L );
}
/***********************************************************************
* ExInitializeZone (NTOSKRNL.EXE.@)
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment