ReactOS 0.4.16-dev-816-g135a9a9
|
Go to the source code of this file.
Definition at line 75 of file kdlock.c.
Referenced by KdInitSystem(), KeUpdateSystemTime(), KiInitializeSystem(), and KiSystemStartup().
NTSTATUS NTAPI KdSystemDebugControl | ( | _In_ SYSDBG_COMMAND | Command, |
_In_reads_bytes_(InputBufferLength) PVOID | InputBuffer, | ||
_In_ ULONG | InputBufferLength, | ||
_Out_writes_bytes_(OutputBufferLength) PVOID | OutputBuffer, | ||
_In_ ULONG | OutputBufferLength, | ||
_Out_opt_ PULONG | ReturnLength, | ||
_In_ KPROCESSOR_MODE | PreviousMode | ||
) |
Perform various queries to the kernel debugger.
[in] | Command | A SYSDBG_COMMAND value describing the kernel debugger command to perform. |
[in] | InputBuffer | Pointer to a user-provided input command-specific buffer, whose length is given by InputBufferLength. |
[in] | InputBufferLength | The size (in bytes) of the buffer pointed by InputBuffer. |
[out] | OutputBuffer | Pointer to a user-provided command-specific output buffer, whose length is given by OutputBufferLength. |
[in] | OutputBufferLength | The size (in bytes) of the buffer pointed by OutputBuffer. |
[out] | ReturnLength | Optional pointer to a ULONG variable that receives the actual length of data written written in the output buffer. It is always zero, except for the live dump commands where an actual non-zero length is returned. |
[in] | PreviousMode | The processor mode (KernelMode or UserMode) in which the command is being executed. |
Definition at line 2217 of file kdapi.c.
Referenced by DriverEntry(), i8042KbdInterruptService(), KdbpCmdRegs(), KdRosDumpStackFrames(), KdRosSetDebugCallback(), and NtSystemDebugControl().
Definition at line 2712 of file kdapi.c.
Referenced by DbgQueryDebugFilterState(), KdpPrint(), and vDbgPrintExWithPrefixInternal().
NTSYSCALLAPI NTSTATUS NTAPI NtSetDebugFilterState | ( | _In_ ULONG | ComponentId, |
_In_ ULONG | Level, | ||
_In_ BOOLEAN | State | ||
) |
Definition at line 2766 of file kdapi.c.
Referenced by DbgSetDebugFilterState(), and KdbpCmdFilter().
NTSYSCALLAPI NTSTATUS NTAPI NtSystemDebugControl | ( | _In_ SYSDBG_COMMAND | Command, |
_In_reads_bytes_(InputBufferLength) PVOID | InputBuffer, | ||
_In_ ULONG | InputBufferLength, | ||
_Out_writes_bytes_(OutputBufferLength) PVOID | OutputBuffer, | ||
_In_ ULONG | OutputBufferLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |
Perform various queries to the kernel debugger.
[in] | Command | A SYSDBG_COMMAND value describing the kernel debugger command to perform. |
[in] | InputBuffer | Pointer to a user-provided input command-specific buffer, whose length is given by InputBufferLength. |
[in] | InputBufferLength | The size (in bytes) of the buffer pointed by InputBuffer. |
[out] | OutputBuffer | Pointer to a user-provided command-specific output buffer, whose length is given by OutputBufferLength. |
[in] | OutputBufferLength | The size (in bytes) of the buffer pointed by OutputBuffer. |
[out] | ReturnLength | Optional pointer to a ULONG variable that receives the actual length of data written written in the output buffer. It is always zero, except for the live dump commands where an actual non-zero length is returned. |
The following system-critical commands are not accessible anymore for user-mode usage with this API on NT 5.2+ (Windows 2003 SP1 and later) systems:
SysDbgQueryVersion, SysDbgReadVirtual and SysDbgWriteVirtual, SysDbgReadPhysical and SysDbgWritePhysical, SysDbgReadControlSpace and SysDbgWriteControlSpace, SysDbgReadIoSpace and SysDbgWriteIoSpace, SysDbgReadMsr and SysDbgWriteMsr, SysDbgReadBusData and SysDbgWriteBusData, SysDbgCheckLowMemory.
For these, NtSystemDebugControl() will return STATUS_NOT_IMPLEMENTED. They are now available from kernel-mode only with KdSystemDebugControl().
Definition at line 209 of file dbgctrl.c.
Referenced by TestSystemDebugControl().
NTSYSAPI NTSTATUS NTAPI ZwSystemDebugControl | ( | _In_ SYSDBG_COMMAND | Command, |
_In_reads_bytes_(InputBufferLength) PVOID | InputBuffer, | ||
_In_ ULONG | InputBufferLength, | ||
_Out_writes_bytes_(OutputBufferLength) PVOID | OutputBuffer, | ||
_In_ ULONG | OutputBufferLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |