ReactOS  0.4.15-dev-4934-gfd1e799
ntoskrnl.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Kernel
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: boot/freeldr/freeldr/arch/i386/ntoskrnl.c
5  * PURPOSE: NTOS glue routines for the MINIHAL library
6  * PROGRAMMERS: HervĂ© Poussineau <hpoussin@reactos.org>
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include <freeldr.h>
12 #include <ntoskrnl.h>
13 
14 /* FUNCTIONS *****************************************************************/
15 
16 VOID
17 NTAPI
22 {
23  RtlZeroMemory(Event, sizeof(*Event));
24 }
25 
26 VOID
27 NTAPI
29  IN ULONG MaxIncrement,
30  IN ULONG MinIncrement)
31 {
32 }
33 
34 VOID
37  IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
38  IN PSTRING NtDeviceName,
39  OUT PUCHAR NtSystemPath,
40  OUT PSTRING NtSystemPathString)
41 {
42 }
43 
51 {
53 }
54 
55 /*
56  * NTSTATUS
57  * FASTCALL
58  * IoReadPartitionTable(
59  * IN PDEVICE_OBJECT DeviceObject,
60  * IN ULONG SectorSize,
61  * IN BOOLEAN ReturnRecognizedPartitions,
62  * OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer);
63  *
64  * See boot/freeldr/freeldr/disk/partition.c
65  */
66 
75 {
77 }
78 
79 VOID
80 NTAPI
82  IN ULONG MicroSeconds)
83 {
84  StallExecutionProcessor(MicroSeconds);
85 }
#define IN
Definition: typedefs.h:39
VOID StallExecutionProcessor(ULONG Microseconds)
Definition: pchw.c:60
VOID FASTCALL IoAssignDriveLetters(IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
Definition: ntoskrnl.c:36
VOID NTAPI KeSetTimeIncrement(IN ULONG MaxIncrement, IN ULONG MinIncrement)
Definition: ntoskrnl.c:28
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONG _In_ ULONG _In_ ULONG NumberOfHeads
Definition: iofuncs.h:2070
_In_ ULONG _In_ ULONG PartitionNumber
Definition: iofuncs.h:2060
#define FASTCALL
Definition: nt_native.h:50
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
return STATUS_NOT_IMPLEMENTED
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
_In_ ULONG _In_ ULONG SectorsPerTrack
Definition: iofuncs.h:2070
_In_ ULONG _In_ BOOLEAN _Out_ struct _DRIVE_LAYOUT_INFORMATION ** PartitionBuffer
Definition: iofuncs.h:2052
unsigned char BOOLEAN
enum _EVENT_TYPE EVENT_TYPE
Type
Definition: Type.h:6
VOID NTAPI KeInitializeEvent(IN PRKEVENT Event, IN EVENT_TYPE Type, IN BOOLEAN State)
Definition: ntoskrnl.c:18
#define OUT
Definition: typedefs.h:40
NTSTATUS FASTCALL IoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
Definition: ntoskrnl.c:46
CHAR PartitionType
Definition: part_xbox.c:32
unsigned int ULONG
Definition: retypes.h:1
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
NTSTATUS FASTCALL IoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
Definition: ntoskrnl.c:69
_In_ ULONG SectorSize
Definition: halfuncs.h:291
VOID NTAPI KeStallExecutionProcessor(IN ULONG MicroSeconds)
Definition: ntoskrnl.c:81