ReactOS  0.4.15-dev-4857-g47842d7
misc.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Generic CPU Driver
3  * LICENSE: GNU GPLv2 only as published by the Free Software Foundation
4  * FILE: drivers/processor/processr/misc.c
5  * PURPOSE: Misc routines
6  * PROGRAMMERS: Eric Kohl <eric.kohl@reactos.org>
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include "processr.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* FUNCTIONS ******************************************************************/
17 
19 NTAPI
22  IN PIRP Irp)
23 {
24  PDEVICE_OBJECT LowerDevice;
25 
26  LowerDevice = ((PDEVICE_EXTENSION)DeviceObject->DeviceExtension)->LowerDevice;
27  ASSERT(LowerDevice);
28 
30  return IoCallDriver(LowerDevice, Irp);
31 }
32 
33 /* EOF */
#define IN
Definition: typedefs.h:39
LONG NTSTATUS
Definition: precomp.h:26
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
_In_ PIRP Irp
Definition: csq.h:116
#define ASSERT(a)
Definition: mode.c:44
NTSTATUS NTAPI ForwardIrpAndForget(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: misc.c:18
NTSTATUS NTAPI IoCallDriver(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: irp.c:1218
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
struct _BEEP_DEVICE_EXTENSION * PDEVICE_EXTENSION