mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
Fixed io statistic variables and initialized spinlock.
Patch by Mike Nordell. svn path=/trunk/; revision=6643
This commit is contained in:
parent
6aed8b6dbd
commit
41cf5bc8f7
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: iomgr.c,v 1.41 2003/10/15 17:04:39 navaraf Exp $
|
/* $Id: iomgr.c,v 1.42 2003/11/14 15:17:08 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -30,11 +30,11 @@
|
||||||
|
|
||||||
POBJECT_TYPE EXPORTED IoDeviceObjectType = NULL;
|
POBJECT_TYPE EXPORTED IoDeviceObjectType = NULL;
|
||||||
POBJECT_TYPE EXPORTED IoFileObjectType = NULL;
|
POBJECT_TYPE EXPORTED IoFileObjectType = NULL;
|
||||||
ULONG EXPORTED IoReadOperationCount = 0; /* FIXME: unknown type */
|
ULONG EXPORTED IoReadOperationCount = 0;
|
||||||
ULONG EXPORTED IoReadTransferCount = 0; /* FIXME: unknown type */
|
ULONGLONG EXPORTED IoReadTransferCount = 0;
|
||||||
ULONG EXPORTED IoWriteOperationCount = 0; /* FIXME: unknown type */
|
ULONG EXPORTED IoWriteOperationCount = 0;
|
||||||
ULONG EXPORTED IoWriteTransferCount = 0; /* FIXME: unknown type */
|
ULONGLONG EXPORTED IoWriteTransferCount = 0;
|
||||||
ULONG EXPORTED IoStatisticsLock = 0; /* FIXME: unknown type */
|
KSPIN_LOCK EXPORTED IoStatisticsLock = 0;
|
||||||
|
|
||||||
static GENERIC_MAPPING IopFileMapping = {FILE_GENERIC_READ,
|
static GENERIC_MAPPING IopFileMapping = {FILE_GENERIC_READ,
|
||||||
FILE_GENERIC_WRITE,
|
FILE_GENERIC_WRITE,
|
||||||
|
@ -359,12 +359,15 @@ IoInit (VOID)
|
||||||
PnpInit();
|
PnpInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID INIT_FUNCTION
|
VOID INIT_FUNCTION
|
||||||
IoInit2(VOID)
|
IoInit2(VOID)
|
||||||
{
|
{
|
||||||
PDEVICE_NODE DeviceNode;
|
PDEVICE_NODE DeviceNode;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
KeInitializeSpinLock (&IoStatisticsLock);
|
||||||
|
|
||||||
/* Initialize raw filesystem driver */
|
/* Initialize raw filesystem driver */
|
||||||
|
|
||||||
/* Use IopRootDeviceNode for now */
|
/* Use IopRootDeviceNode for now */
|
||||||
|
|
Loading…
Reference in a new issue