- Standardize I/O Completion Port initialization function

- Actually call it

svn path=/trunk/; revision=12276
This commit is contained in:
Gé van Geldorp 2004-12-21 18:37:28 +00:00
parent b4ad77b7ad
commit ea8bd9a5d2
3 changed files with 11 additions and 4 deletions

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: io.h,v 1.50 2004/11/25 22:18:16 ion Exp $ /* $Id: io.h,v 1.51 2004/12/21 18:37:28 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -523,6 +523,11 @@ IopRemoveTimerFromTimerList(
IN PIO_TIMER Timer IN PIO_TIMER Timer
); );
/* iocomp.c */
VOID
FASTCALL
IopInitIoCompletionImplementation(VOID);
#define CM_RESOURCE_LIST_SIZE(ResList) \ #define CM_RESOURCE_LIST_SIZE(ResList) \
(ResList->Count == 1) ? \ (ResList->Count == 1) ? \
FIELD_OFFSET(CM_RESOURCE_LIST, List[0].PartialResourceList. \ FIELD_OFFSET(CM_RESOURCE_LIST, List[0].PartialResourceList. \

View file

@ -100,7 +100,8 @@ IoSetIoCompletion (
} }
VOID VOID
NtInitializeIoCompletionImplementation(VOID) FASTCALL
IopInitIoCompletionImplementation(VOID)
{ {
ExIoCompletionType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE)); ExIoCompletionType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));

View file

@ -1,4 +1,4 @@
/* $Id: iomgr.c,v 1.54 2004/11/21 21:53:07 ion Exp $ /* $Id: iomgr.c,v 1.55 2004/12/21 18:37:28 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -535,6 +535,7 @@ IoInit (VOID)
IoInitShutdownNotification(); IoInitShutdownNotification();
IopInitErrorLog(); IopInitErrorLog();
IopInitTimerImplementation(); IopInitTimerImplementation();
IopInitIoCompletionImplementation();
/* /*
* Create link from '\DosDevices' to '\??' directory * Create link from '\DosDevices' to '\??' directory