ReactOS  0.4.13-dev-73-gcfe54aa
io.c File Reference
#include "bl.h"
Include dependency graph for io.c:

Go to the source code of this file.

Functions

NTSTATUS BlpIoRegisterDestroyRoutine (_In_ PBL_IO_DESTROY_ROUTINE DestroyRoutine)
 
NTSTATUS BlpIoInitialize (VOID)
 

Variables

ULONG IoMgrRoutineEntries
 
PVOIDIoMgrDestroyRoutineTable
 

Function Documentation

◆ BlpIoInitialize()

NTSTATUS BlpIoInitialize ( VOID  )

Definition at line 35 of file io.c.

38 {
40  ULONG Size;
41 
42  /* Allocate the I/O table */
44  Size = IoMgrRoutineEntries * sizeof(PVOID);
47  {
48  /* Zero it out */
50 
51  /* Initialize the device manager */
53 
54  /* Initialize the file manager */
55  if (NT_SUCCESS(Status))
56  {
58  }
59  }
60  else
61  {
62  /* No memory */
64  }
65 
66  /* Return initialization status */
67  return Status;
68 }
LONG NTSTATUS
Definition: precomp.h:26
PVOID * IoMgrDestroyRoutineTable
Definition: io.c:16
NTSTATUS BlpDeviceInitialize(VOID)
Definition: device.c:2309
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
void * PVOID
Definition: retypes.h:9
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS BlpFileInitialize(VOID)
Definition: file.c:908
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
Status
Definition: gdiplustypes.h:24
ULONG IoMgrRoutineEntries
Definition: io.c:15
#define STATUS_NO_MEMORY
Definition: ntstatus.h:246
unsigned int ULONG
Definition: retypes.h:1
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261

Referenced by InitializeLibrary().

◆ BlpIoRegisterDestroyRoutine()

NTSTATUS BlpIoRegisterDestroyRoutine ( _In_ PBL_IO_DESTROY_ROUTINE  DestroyRoutine)

Definition at line 21 of file io.c.

24 {
25  ULONG Id;
26 
29  DestroyRoutine,
30  &Id,
32 }
NTSTATUS TblDoNotPurgeEntry(_In_ PVOID Entry)
Definition: util.c:495
PVOID * IoMgrDestroyRoutineTable
Definition: io.c:16
DWORD Id
ULONG IoMgrRoutineEntries
Definition: io.c:15
NTSTATUS BlTblSetEntry(_Inout_ PVOID **Table, _Inout_ PULONG Count, _In_ PVOID Entry, _Out_ PULONG EntryIndex, _In_ PBL_TBL_SET_ROUTINE Callback)
Definition: util.c:321
unsigned int ULONG
Definition: retypes.h:1

Referenced by BcInitialize(), and BlockIopInitialize().

Variable Documentation

◆ IoMgrDestroyRoutineTable

PVOID* IoMgrDestroyRoutineTable

Definition at line 16 of file io.c.

Referenced by BlpIoInitialize(), and BlpIoRegisterDestroyRoutine().

◆ IoMgrRoutineEntries

ULONG IoMgrRoutineEntries

Definition at line 15 of file io.c.

Referenced by BlpIoInitialize(), and BlpIoRegisterDestroyRoutine().