[NTOS:KD] Add some annotations.

This commit is contained in:
Hermès Bélusca-Maïto 2023-01-09 12:31:03 +01:00
parent cee893be99
commit a8b09eddc4
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 30 additions and 30 deletions

View file

@ -40,10 +40,9 @@ typedef enum _KD_CONTINUE_TYPE
typedef typedef
VOID VOID
(NTAPI*PKDP_INIT_ROUTINE)( (NTAPI *PKDP_INIT_ROUTINE)(
struct _KD_DISPATCH_TABLE *DispatchTable, _In_ struct _KD_DISPATCH_TABLE *DispatchTable,
ULONG BootPhase _In_ ULONG BootPhase);
);
typedef typedef
VOID VOID
@ -63,30 +62,27 @@ KdpScreenRelease(VOID);
VOID VOID
NTAPI NTAPI
KdpScreenInit( KdpScreenInit(
struct _KD_DISPATCH_TABLE *DispatchTable, _In_ struct _KD_DISPATCH_TABLE *DispatchTable,
ULONG BootPhase _In_ ULONG BootPhase);
);
VOID VOID
NTAPI NTAPI
KdpSerialInit( KdpSerialInit(
struct _KD_DISPATCH_TABLE *DispatchTable, _In_ struct _KD_DISPATCH_TABLE *DispatchTable,
ULONG BootPhase _In_ ULONG BootPhase);
);
VOID VOID
NTAPI NTAPI
KdpDebugLogInit( KdpDebugLogInit(
struct _KD_DISPATCH_TABLE *DispatchTable, _In_ struct _KD_DISPATCH_TABLE *DispatchTable,
ULONG BootPhase _In_ ULONG BootPhase);
);
#ifdef KDBG #ifdef KDBG
VOID VOID
NTAPI NTAPI
KdpKdbgInit( KdpKdbgInit(
struct _KD_DISPATCH_TABLE *DispatchTable, _In_ struct _KD_DISPATCH_TABLE *DispatchTable,
ULONG BootPhase); _In_ ULONG BootPhase);
#endif #endif

View file

@ -212,8 +212,9 @@ KdpPrintToLogFile(PCHAR String,
VOID VOID
NTAPI NTAPI
KdpDebugLogInit(PKD_DISPATCH_TABLE DispatchTable, KdpDebugLogInit(
ULONG BootPhase) _In_ PKD_DISPATCH_TABLE DispatchTable,
_In_ ULONG BootPhase)
{ {
NTSTATUS Status; NTSTATUS Status;
UNICODE_STRING FileName; UNICODE_STRING FileName;
@ -340,8 +341,9 @@ KdpSerialPrint(PCHAR String,
VOID VOID
NTAPI NTAPI
KdpSerialInit(PKD_DISPATCH_TABLE DispatchTable, KdpSerialInit(
ULONG BootPhase) _In_ PKD_DISPATCH_TABLE DispatchTable,
_In_ ULONG BootPhase)
{ {
if (!KdpDebugMode.Serial) return; if (!KdpDebugMode.Serial) return;
@ -504,8 +506,9 @@ KdpScreenPrint(PCHAR String,
VOID VOID
NTAPI NTAPI
KdpScreenInit(PKD_DISPATCH_TABLE DispatchTable, KdpScreenInit(
ULONG BootPhase) _In_ PKD_DISPATCH_TABLE DispatchTable,
_In_ ULONG BootPhase)
{ {
if (!KdpDebugMode.Screen) return; if (!KdpDebugMode.Screen) return;
@ -550,8 +553,8 @@ KdbInitialize(PKD_DISPATCH_TABLE DispatchTable, ULONG BootPhase);
VOID VOID
NTAPI NTAPI
KdpKdbgInit( KdpKdbgInit(
PKD_DISPATCH_TABLE DispatchTable, _In_ PKD_DISPATCH_TABLE DispatchTable,
ULONG BootPhase) _In_ ULONG BootPhase)
{ {
/* Forward the call */ /* Forward the call */
KdbInitialize(DispatchTable, BootPhase); KdbInitialize(DispatchTable, BootPhase);

View file

@ -21,7 +21,8 @@ extern ANSI_STRING KdpLogFileName;
static PCHAR static PCHAR
NTAPI NTAPI
KdpGetDebugMode(PCHAR Currentp2) KdpGetDebugMode(
_In_ PCHAR Currentp2)
{ {
PCHAR p1, p2 = Currentp2; PCHAR p1, p2 = Currentp2;
ULONG Value; ULONG Value;
@ -83,7 +84,7 @@ KdpGetDebugMode(PCHAR Currentp2)
NTSTATUS NTSTATUS
NTAPI NTAPI
KdDebuggerInitialize0( KdDebuggerInitialize0(
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL) _In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock)
{ {
ULONG i; ULONG i;
PCHAR CommandLine, Port = NULL; PCHAR CommandLine, Port = NULL;
@ -138,7 +139,7 @@ KdDebuggerInitialize0(
NTSTATUS NTSTATUS
NTAPI NTAPI
KdDebuggerInitialize1( KdDebuggerInitialize1(
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL) _In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock)
{ {
PLIST_ENTRY CurrentEntry; PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable; PKD_DISPATCH_TABLE CurrentTable;

View file

@ -348,8 +348,8 @@ KdbDebugPrint(
VOID VOID
NTAPI NTAPI
KdbInitialize( KdbInitialize(
PKD_DISPATCH_TABLE DispatchTable, _In_ PKD_DISPATCH_TABLE DispatchTable,
ULONG BootPhase) _In_ ULONG BootPhase)
{ {
PCHAR p1, p2; PCHAR p1, p2;
SHORT Found = FALSE; SHORT Found = FALSE;

View file

@ -9,13 +9,13 @@ typedef ULONG KDSTATUS;
NTSTATUS NTSTATUS
NTAPI NTAPI
KdDebuggerInitialize0( KdDebuggerInitialize0(
IN PLOADER_PARAMETER_BLOCK LoaderBlock _In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock
); );
NTSTATUS NTSTATUS
NTAPI NTAPI
KdDebuggerInitialize1( KdDebuggerInitialize1(
IN PLOADER_PARAMETER_BLOCK LoaderBlock _In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock
); );
KDSTATUS KDSTATUS