ReactOS 0.4.16-dev-297-gc569aee
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 BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
NTSTATUS BlpDeviceInitialize(VOID)
Definition: device.c:2309
NTSTATUS BlpFileInitialize(VOID)
Definition: file.c:908
PVOID * IoMgrDestroyRoutineTable
Definition: io.c:16
ULONG IoMgrRoutineEntries
Definition: io.c:15
#define STATUS_NO_MEMORY
Definition: d3dkmdt.h:51
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
Status
Definition: gdiplustypes.h:25
void * PVOID
Definition: typedefs.h:50
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

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}
DWORD Id
NTSTATUS TblDoNotPurgeEntry(_In_ PVOID Entry)
Definition: util.c:495
NTSTATUS BlTblSetEntry(_Inout_ PVOID **Table, _Inout_ PULONG Count, _In_ PVOID Entry, _Out_ PULONG EntryIndex, _In_ PBL_TBL_SET_ROUTINE Callback)
Definition: util.c:321

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().