ReactOS  0.4.15-dev-2528-g5506091
faulttol.c File Reference
#include <ntoskrnl.h>
#include "ntddft.h"
#include <debug.h>
Include dependency graph for faulttol.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI FsRtlBalanceReads (PDEVICE_OBJECT TargetDevice)
 
NTSTATUS NTAPI FsRtlSyncVolumes (ULONG Unknown0, ULONG Unknown1, ULONG Unknown2)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file faulttol.c.

Function Documentation

◆ FsRtlBalanceReads()

NTSTATUS NTAPI FsRtlBalanceReads ( PDEVICE_OBJECT  TargetDevice)

Definition at line 35 of file faulttol.c.

36 {
37  PIRP Irp;
38  KEVENT Event;
41 
42  /* Initialize the Local Event */
44 
45  /* Build the special IOCTL */
48  NULL,
49  0,
50  NULL,
51  0,
52  FALSE,
53  &Event,
54  &IoStatusBlock);
56 
57  /* Send it */
59 
60  /* Wait if needed */
61  if (Status == STATUS_PENDING)
62  {
64  Executive,
65  KernelMode,
66  FALSE,
67  NULL);
69 
70  /* Return Status */
72  }
73 
74  /* Return the status */
75  return Status;
76 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
_Must_inspect_result_ __drv_aliasesMem PDEVICE_OBJECT _In_ PDEVICE_OBJECT TargetDevice
Definition: iofuncs.h:688
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI KeWaitForSingleObject(IN PVOID Object, IN KWAIT_REASON WaitReason, IN KPROCESSOR_MODE WaitMode, IN BOOLEAN Alertable, IN PLARGE_INTEGER Timeout OPTIONAL)
Definition: wait.c:416
#define FALSE
Definition: types.h:117
_In_ PIRP Irp
Definition: csq.h:116
_In_ PVOID _In_ ULONG Event
Definition: iotypes.h:467
Status
Definition: gdiplustypes.h:24
#define ASSERT(a)
Definition: mode.c:45
#define STATUS_PENDING
Definition: ntstatus.h:82
#define KeInitializeEvent(pEvt, foo, foo2)
Definition: env_spec_w32.h:477
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define NULL
Definition: types.h:112
NTSTATUS NTAPI IoCallDriver(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: irp.c:1218
#define FT_BALANCED_READ_MODE
Definition: ntddft.h:31
PIRP NTAPI IoBuildDeviceIoControlRequest(IN ULONG IoControlCode, IN PDEVICE_OBJECT DeviceObject, IN PVOID InputBuffer, IN ULONG InputBufferLength, IN PVOID OutputBuffer, IN ULONG OutputBufferLength, IN BOOLEAN InternalDeviceIoControl, IN PKEVENT Event, IN PIO_STATUS_BLOCK IoStatusBlock)
Definition: irp.c:881
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by FatCheckDirtyBit().

◆ FsRtlSyncVolumes()

NTSTATUS NTAPI FsRtlSyncVolumes ( ULONG  Unknown0,
ULONG  Unknown1,
ULONG  Unknown2 
)

Definition at line 91 of file faulttol.c.

94 {
95  /* Always return success */
96  return STATUS_SUCCESS;
97 }
#define STATUS_SUCCESS
Definition: shellext.h:65