ReactOS  0.4.15-dev-3187-ge372f2b
ntoskrnl.c File Reference
#include <freeldr.h>
#include <ntoskrnl.h>
Include dependency graph for ntoskrnl.c:

Go to the source code of this file.

Functions

VOID NTAPI KeInitializeEvent (IN PRKEVENT Event, IN EVENT_TYPE Type, IN BOOLEAN State)
 
VOID FASTCALL KefAcquireSpinLockAtDpcLevel (IN PKSPIN_LOCK SpinLock)
 
VOID NTAPI KeSetTimeIncrement (IN ULONG MaxIncrement, IN ULONG MinIncrement)
 
VOID FASTCALL IoAssignDriveLetters (IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
 
NTSTATUS FASTCALL IoSetPartitionInformation (IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
 
NTSTATUS FASTCALL IoWritePartitionTable (IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
 
VOID NTAPI KeStallExecutionProcessor (IN ULONG MicroSeconds)
 

Function Documentation

◆ IoAssignDriveLetters()

VOID FASTCALL IoAssignDriveLetters ( IN struct _LOADER_PARAMETER_BLOCK LoaderBlock,
IN PSTRING  NtDeviceName,
OUT PUCHAR  NtSystemPath,
OUT PSTRING  NtSystemPathString 
)

Definition at line 51 of file ntoskrnl.c.

56 {
57 }

Referenced by HalpAssignDriveLetters(), and IoInitSystem().

◆ IoSetPartitionInformation()

NTSTATUS FASTCALL IoSetPartitionInformation ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  SectorSize,
IN ULONG  PartitionNumber,
IN ULONG  PartitionType 
)

Definition at line 61 of file ntoskrnl.c.

66 {
68 }
return STATUS_NOT_IMPLEMENTED

Referenced by HalpSetPartitionInformation(), IoSetPartitionInformationEx(), and PartitionHandleDeviceControl().

◆ IoWritePartitionTable()

NTSTATUS FASTCALL IoWritePartitionTable ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  SectorSize,
IN ULONG  SectorsPerTrack,
IN ULONG  NumberOfHeads,
IN PDRIVE_LAYOUT_INFORMATION  PartitionBuffer 
)

Definition at line 84 of file ntoskrnl.c.

90 {
92 }
return STATUS_NOT_IMPLEMENTED

Referenced by FstubWritePartitionTableMBR(), and HalpWritePartitionTable().

◆ KefAcquireSpinLockAtDpcLevel()

VOID FASTCALL KefAcquireSpinLockAtDpcLevel ( IN PKSPIN_LOCK  SpinLock)

Definition at line 28 of file ntoskrnl.c.

30 {
31 #if DBG
32  /* To be on par with HAL/NTOSKRNL */
33 #ifdef _M_AMD64
35 #else
36  *SpinLock = (KSPIN_LOCK)(((PKIPCR)KeGetPcr())->PrcbData.CurrentThread) | 1;
37 #endif
38 #endif
39 }
#define KeGetPcr()
Definition: ke.h:26
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
Definition: wdfsync.h:225
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
#define KeGetCurrentThread
Definition: hal.h:55

◆ KeInitializeEvent()

VOID NTAPI KeInitializeEvent ( IN PRKEVENT  Event,
IN EVENT_TYPE  Type,
IN BOOLEAN  State 
)

Definition at line 18 of file ntoskrnl.c.

22 {
23  memset(Event, 0, sizeof(*Event));
24 }
#define memset(x, y, z)
Definition: compat.h:39

◆ KeSetTimeIncrement()

VOID NTAPI KeSetTimeIncrement ( IN ULONG  MaxIncrement,
IN ULONG  MinIncrement 
)

Definition at line 43 of file ntoskrnl.c.

46 {
47 }

Referenced by HalInitSystem(), and HalpInitializeClock().

◆ KeStallExecutionProcessor()