ReactOS  0.4.15-dev-2350-g7194f2f
ke.h
Go to the documentation of this file.
1 #pragma once
2 
3 /* INCLUDES *****************************************************************/
4 
5 #include "arch/ke.h"
6 
7 /* INTERNAL KERNEL TYPES ****************************************************/
8 
9 typedef struct _WOW64_PROCESS
10 {
13 
15 {
19 
20 typedef enum _CONNECT_TYPE
21 {
27 
28 typedef struct _DISPATCH_INFO
29 {
38 
39 typedef struct _PROCESS_VALUES
40 {
45 
47 {
51 
52 typedef struct _KI_SAMPLE_MAP
53 {
63 
64 #define MAX_TIMER_DPCS 16
65 
66 typedef struct _DPC_QUEUE_ENTRY
67 {
72 
73 typedef struct _KNMI_HANDLER_CALLBACK
74 {
80 
81 typedef PCHAR
83  IN PUNICODE_STRING Unicode,
84  IN PCHAR Ansi,
86 );
87 
101 extern ULONG KeFeatureBits;
102 extern KNODE KiNode0;
103 extern PKNODE KeNodeBlock[1];
104 extern UCHAR KeNumberNodes;
105 extern UCHAR KeProcessNodeSeed;
106 extern ETHREAD KiInitialThread;
115 extern ULONG KiMinimumDpcRate;
117 extern ULONG KiIdealDpcRate;
122 extern ULONG KiServiceLimit;
125 extern KDPC KiTimerExpireDpc;
133 extern KEVENT KiSwapEvent;
134 extern PKPRCB KiProcessorBlock[];
136 extern ULONG_PTR KiIdleSummary;
141 extern ULONG KeTimeIncrement;
142 extern ULONG KeTimeAdjustment;
144 extern LONG KiTickOffset;
145 extern ULONG KiFreezeFlag;
146 extern ULONG KiDPCTimeout;
149 extern ULONG ProcessCount;
151 
152 /* MACROS *************************************************************************/
153 
154 #define AFFINITY_MASK(Id) KiMask32Array[Id]
155 #define PRIORITY_MASK(Id) KiMask32Array[Id]
156 
157 /* Tells us if the Timer or Event is a Syncronization or Notification Object */
158 #define TIMER_OR_EVENT_TYPE 0x7L
159 
160 /* One of the Reserved Wait Blocks, this one is for the Thread's Timer */
161 #define TIMER_WAIT_BLOCK 0x3L
162 
163 /* INTERNAL KERNEL FUNCTIONS ************************************************/
164 
165 /* Finds a new thread to run */
166 LONG_PTR
167 FASTCALL
170  IN PKPRCB Prcb
171 );
172 
173 VOID
174 NTAPI
177 );
178 
179 BOOLEAN
180 NTAPI
183  IN BOOLEAN Disable
184 );
185 
186 BOOLEAN
187 NTAPI
190  IN BOOLEAN Disable
191 );
192 
193 BOOLEAN
194 NTAPI
198 );
199 
200 KAFFINITY
201 NTAPI
205 );
206 
207 VOID
208 NTAPI
212 );
213 
214 VOID
215 NTAPI
217 
218 VOID
219 NTAPI
221 
222 ULONG
223 NTAPI
225 
226 BOOLEAN
227 NTAPI
229 
230 BOOLEAN
231 FASTCALL
233  IN KIRQL WaitIrql,
234  IN PKTHREAD CurrentThread
235 );
236 
237 VOID
238 NTAPI
240 
241 VOID
242 FASTCALL
244 
245 VOID
246 FASTCALL
248 
249 PKTHREAD
250 FASTCALL
252  IN PKPRCB Prcb
253 );
254 
255 VOID
256 FASTCALL
258  IN PKPRCB Prcb
259 );
260 
261 KAFFINITY
262 FASTCALL
266 );
267 
268 PKTHREAD
269 FASTCALL
271  IN PKPRCB Prcb
272 );
273 
274 BOOLEAN
275 FASTCALL
277  IN PKTIMER Timer,
278  IN ULONG Hand
279 );
280 
281 VOID
282 FASTCALL
284  IN PLIST_ENTRY ExpiredListHead,
286 );
287 
288 BOOLEAN
289 FASTCALL
291  IN PKTIMER Timer,
293 );
294 
295 VOID
296 FASTCALL
298  IN PKTIMER Timer,
299  IN PKSPIN_LOCK_QUEUE LockQueue
300 );
301 
302 /* gmutex.c ********************************************************************/
303 
304 VOID
305 FASTCALL
307  IN OUT PKGUARDED_MUTEX GuardedMutex
308 );
309 
310 VOID
311 FASTCALL
313  IN PFAST_MUTEX FastMutex
314 );
315 
316 /* gate.c **********************************************************************/
317 
318 VOID
319 FASTCALL
321 
322 VOID
323 FASTCALL
325 
326 VOID
327 FASTCALL
329  PKGATE Gate,
330  KWAIT_REASON WaitReason,
331  KPROCESSOR_MODE WaitMode
332 );
333 
334 /* ipi.c ********************************************************************/
335 
336 VOID
337 FASTCALL
338 KiIpiSend(
339  KAFFINITY TargetSet,
340  ULONG IpiRequest
341 );
342 
343 VOID
344 NTAPI
346  IN KAFFINITY TargetProcessors,
347  IN PKIPI_WORKER WorkerFunction,
348  IN PKIPI_BROADCAST_WORKER BroadcastFunction,
350  IN PULONG Count
351 );
352 
353 VOID
354 FASTCALL
356  IN PKIPI_CONTEXT PacketContext
357 );
358 
359 VOID
360 FASTCALL
362  IN PKIPI_CONTEXT PacketContext,
363  IN volatile PULONG ReverseStall
364 );
365 
366 /* next file ***************************************************************/
367 
368 UCHAR
369 NTAPI
371  IN UCHAR Number,
372  IN ULONG Set
373 );
374 
375 VOID
376 NTAPI
378 
379 VOID
380 NTAPI
382  struct _KPROFILE* Profile,
383  struct _KPROCESS* Process,
384  PVOID ImageBase,
385  SIZE_T ImageSize,
386  ULONG BucketSize,
387  KPROFILE_SOURCE ProfileSource,
389 );
390 
391 BOOLEAN
392 NTAPI
394  struct _KPROFILE* Profile,
395  PVOID Buffer
396 );
397 
398 BOOLEAN
399 NTAPI
400 KeStopProfile(struct _KPROFILE* Profile);
401 
402 ULONG
403 NTAPI
405 
406 VOID
407 NTAPI
409  ULONG Interval,
410  KPROFILE_SOURCE ProfileSource
411 );
412 
413 VOID
414 NTAPI
416  PKTRAP_FRAME TrapFrame,
417  KIRQL Irql
418 );
419 
420 VOID
421 NTAPI
423  PKDPC Dpc,
427 );
428 
429 VOID
430 NTAPI
434  IN PKSYSTEM_ROUTINE SystemRoutine,
436  IN PVOID StartContext,
438  IN PVOID Teb,
439  IN PVOID KernelStack
440 );
441 
442 VOID
443 NTAPI
446 );
447 
448 NTSTATUS
449 NTAPI
452  IN PVOID KernelStack,
453  IN PKSYSTEM_ROUTINE SystemRoutine,
455  IN PVOID StartContext,
457  IN PVOID Teb,
459 );
460 
461 VOID
462 NTAPI
465  PKSYSTEM_ROUTINE SystemRoutine,
467  PVOID StartContext,
469 );
470 
471 VOID
472 NTAPI
475 );
476 
477 BOOLEAN
478 NTAPI
481  IN KPROCESSOR_MODE AlertMode
482 );
483 
484 ULONG
485 NTAPI
488 );
489 
490 ULONG
491 NTAPI
494 );
495 
496 PVOID
497 NTAPI
499  IN PVOID StackBase,
500  IN PVOID StackLimit
501 );
502 
503 VOID
504 NTAPI
506 
507 NTSTATUS
508 NTAPI
510 
511 VOID
512 NTAPI
514  IN PKAPC Apc
515 );
516 
517 VOID
518 NTAPI
520  IN PKAPC Apc,
521  IN PKNORMAL_ROUTINE *NormalRoutine,
522  IN PVOID *NormalContext,
525 );
526 
527 VOID
528 NTAPI
530  IN PVOID NormalContext,
533 );
534 
535 LONG
536 NTAPI
538 
539 VOID
540 FASTCALL
544 );
545 
546 VOID
547 FASTCALL
550  IN LONG_PTR WaitStatus
551 );
552 
553 VOID
554 NTAPI
556 
557 BOOLEAN
558 NTAPI
560 
561 VOID
562 FASTCALL
565  IN LONG_PTR WaitStatus,
567 );
568 
569 VOID
570 NTAPI
572  struct _KPROCESS *Process,
575  PULONG_PTR DirectoryTableBase,
577 );
578 
579 VOID
580 NTAPI
583  IN UCHAR Quantum
584 );
585 
586 KPRIORITY
587 NTAPI
591  IN UCHAR Quantum OPTIONAL
592 );
593 
594 ULONG
595 NTAPI
597 
598 VOID
599 NTAPI
601  VOID
602 );
603 
604 VOID
605 NTAPI
607  VOID
608 );
609 
610 BOOLEAN
611 NTAPI
613 
614 VOID
615 FASTCALL
616 KiWaitTest(
617  PVOID Object,
619 );
620 
621 VOID
622 NTAPI
625  PKEXCEPTION_FRAME ExeptionFrame,
626  PKTRAP_FRAME TrapFrame,
627  ULONG ContextFlags,
629 );
630 
631 VOID
632 NTAPI
634 
635 VOID
636 NTAPI
638 
639 LONG
640 NTAPI
642  IN PKQUEUE Queue,
644  BOOLEAN Head
645 );
646 
647 VOID
648 NTAPI
650  IN PKDPC Dpc,
654 );
655 
656 ULONG
657 NTAPI
659  struct _KPROCESS* Process,
661  BOOLEAN InWait
662 );
663 
664 VOID
665 NTAPI
667 
668 VOID
669 NTAPI
672  IN PKTRAP_FRAME TrapFrame,
673  IN PKNORMAL_ROUTINE NormalRoutine,
674  IN PVOID NormalContext,
677 );
678 
680 NTAPI
684 );
685 
686 VOID
687 NTAPI
689  struct _KTHREAD *Thread,
690  struct _KPROCESS *Process,
691  PKLOCK_QUEUE_HANDLE ApcLock,
692  struct _KAPC_STATE *SavedApcState
693 );
694 
695 VOID
696 NTAPI
698  struct _KPROCESS *NewProcess,
699  struct _KPROCESS *OldProcess
700 );
701 
702 BOOLEAN
703 NTAPI
705 
706 BOOLEAN
707 NTAPI
709 
710 VOID
711 FASTCALL
713 
714 ULONG
715 NTAPI
718 
719 VOID
720 NTAPI
722  PPROCESS_VALUES Values);
723 
724 /* INITIALIZATION FUNCTIONS *************************************************/
725 
726 BOOLEAN
727 NTAPI
729 
730 VOID
731 NTAPI
733 
734 VOID
735 NTAPI
737 
738 VOID
739 NTAPI
741 
743 VOID
744 NTAPI
746  IN PLOADER_PARAMETER_BLOCK LoaderBlock
747 );
748 
749 BOOLEAN
750 NTAPI
751 KiDeliverUserApc(PKTRAP_FRAME TrapFrame);
752 
753 VOID
754 NTAPI
756  PKAPC_STATE OldState,
757  PKAPC_STATE NewState
758 );
759 
760 VOID
761 NTAPI
764  ULONG Pc
765 );
766 
767 VOID
768 NTAPI
770  PEXCEPTION_RECORD ExceptionRecord,
771  PKEXCEPTION_FRAME ExceptionFrame,
772  PKTRAP_FRAME Tf,
774  BOOLEAN SearchFrames
775 );
776 
777 VOID
778 NTAPI
780  IN PKTRAP_FRAME TrapFrame,
781  IN PKEXCEPTION_FRAME ExceptionFrame,
783 );
784 
786 VOID
787 NTAPI
789  ULONG BugCheckCode,
790  ULONG_PTR BugCheckParameter1,
791  ULONG_PTR BugCheckParameter2,
792  ULONG_PTR BugCheckParameter3,
793  ULONG_PTR BugCheckParameter4,
794  PKTRAP_FRAME Tf
795 );
796 
797 BOOLEAN
798 NTAPI
800 
801 VOID
802 NTAPI
804 
805 BOOLEAN
806 NTAPI
808 
809 VOID
810 FASTCALL
812  IN ULONG Size);
813 
814 BOOLEAN
815 FASTCALL
816 KeInvalidAccessAllowed(IN PVOID TrapInformation OPTIONAL);
817 
818 VOID
819 NTAPI
821  PULONG_PTR Frame,
822  ULONG FrameCount
823 );
824 
825 VOID
826 NTAPI
828  IN PLARGE_INTEGER NewSystemTime,
829  OUT PLARGE_INTEGER OldSystemTime,
830  IN BOOLEAN FixInterruptTime,
831  IN PLARGE_INTEGER HalTime
832 );
833 
834 ULONG
835 NTAPI
837  ULONG ExceptionNr,
838  PKTRAP_FRAME Tf,
839  ULONG address
840 );
841 
842 VOID
843 NTAPI
845  VOID
846 );
847 
848 VOID
849 NTAPI
851  VOID
852 );
853 
854 NTSTATUS
855 NTAPI
857  IN PEXCEPTION_RECORD ExceptionRecord,
859  IN PKEXCEPTION_FRAME ExceptionFrame,
860  IN PKTRAP_FRAME TrapFrame,
861  IN BOOLEAN SearchFrames
862 );
863 
864 NTSTATUS
865 NTAPI
866 KiContinue(
868  IN PKEXCEPTION_FRAME ExceptionFrame,
869  IN PKTRAP_FRAME TrapFrame
870 );
871 
873 VOID
874 FASTCALL
876  IN PKTRAP_FRAME TrapFrame,
878 );
879 
881 VOID
882 FASTCALL
884  IN PKTRAP_FRAME TrapFrame
885 );
886 
887 #ifndef _M_AMD64
888 VOID
889 FASTCALL
891  IN PKTRAP_FRAME TrapFrame,
893 );
894 #endif
895 
896 VOID
897 FASTCALL
899  IN PKTRAP_FRAME TrapFrame,
901 );
902 
903 VOID
904 NTAPI
906  VOID
907 );
908 
909 VOID
910 NTAPI
912  IN PKPROCESS InitProcess,
913  IN PKTHREAD InitThread,
914  IN PVOID IdleStack,
915  IN PKPRCB Prcb,
916  IN CCHAR Number,
917  IN PLOADER_PARAMETER_BLOCK LoaderBlock
918 );
919 
920 VOID
921 NTAPI
923  IN PKPRCB Prcb,
924  IN CCHAR Number
925 );
926 
928 NTAPI
930  IN LONG Divisor,
932 );
933 
934 VOID
935 NTAPI
937  VOID
938 );
939 
940 VOID
941 FASTCALL
943  IN PKAPC Apc,
945 );
946 
947 NTSTATUS
948 NTAPI
951  IN PULONG OutputLength
952 );
953 
955 VOID
956 FASTCALL
958  IN PVOID Stack,
960 );
961 
962 VOID
963 NTAPI
965 
966 BOOLEAN
967 NTAPI
969  IN PKEXCEPTION_FRAME ExceptionFrame);
970 
971 VOID
972 NTAPI
974 
975 VOID
976 FASTCALL
978  IN OUT PKSPIN_LOCK_QUEUE LockQueue
979 );
980 
981 VOID
982 FASTCALL
984  IN OUT PKSPIN_LOCK_QUEUE LockQueue
985 );
986 
987 VOID
988 NTAPI
990  IN PKPROCESSOR_STATE ProcessorState
991 );
992 
993 VOID
994 NTAPI
996  OUT PKPROCESSOR_STATE ProcessorState
997 );
998 
999 VOID
1000 NTAPI
1002  IN PKTRAP_FRAME TrapFrame,
1003  IN PKEXCEPTION_FRAME ExceptionFrame
1004 );
1005 
1006 VOID
1007 FASTCALL
1009  IN PKPRCB Prcb
1010 );
1011 
1012 VOID
1013 NTAPI
1014 KiQuantumEnd(
1015  VOID
1016 );
1017 
1019 VOID
1020 KiIdleLoop(
1021  VOID
1022 );
1023 
1025 VOID
1026 FASTCALL
1029  IN PKTRAP_FRAME TrapFrame
1030 );
1031 
1032 PVOID
1033 NTAPI
1035  OUT PLDR_DATA_TABLE_ENTRY *LdrEntry,
1036  IN BOOLEAN DriversOnly,
1037  OUT PBOOLEAN InKernel);
1038 
1039 PVOID
1040 NTAPI
1042  OUT PLDR_DATA_TABLE_ENTRY *LdrEntry);
1043 
1044 PCHAR
1045 NTAPI
1047  IN PUNICODE_STRING Unicode,
1048  OUT PCHAR Ansi,
1049  IN ULONG Length
1050 );
1051 
1052 #include "ke_x.h"
PKINTERRUPT Interrupt
Definition: ke.h:31
VOID NTAPI KeContextToTrapFrame(PCONTEXT Context, PKEXCEPTION_FRAME ExeptionFrame, PKTRAP_FRAME TrapFrame, ULONG ContextFlags, KPROCESSOR_MODE PreviousMode)
DECLSPEC_NORETURN VOID KiIdleLoop(VOID)
Definition: stubs.c:172
VOID NTAPI KiInitSystem(VOID)
Definition: krnlinit.c:71
signed char * PCHAR
Definition: retypes.h:7
BOOLEAN NTAPI KeSetDisableBoostThread(IN OUT PKTHREAD Thread, IN BOOLEAN Disable)
Definition: thrdobj.c:95
VOID NTAPI KiInitMachineDependent(VOID)
Definition: kiinit.c:46
PLIST_ENTRY NTAPI KeFlushQueueApc(IN PKTHREAD Thread, IN KPROCESSOR_MODE PreviousMode)
Definition: apc.c:793
VOID FASTCALL KeReleaseQueuedSpinLockFromDpcLevel(IN OUT PKSPIN_LOCK_QUEUE LockQueue)
PVOID NTAPI KiPcToFileHeader(IN PVOID Eip, OUT PLDR_DATA_TABLE_ENTRY *LdrEntry, IN BOOLEAN DriversOnly, OUT PBOOLEAN InKernel)
Definition: bug.c:41
VOID NTAPI KeRundownThread(VOID)
Definition: thrdobj.c:439
DECLSPEC_NORETURN VOID FASTCALL KiServiceExit2(IN PKTRAP_FRAME TrapFrame)
Definition: traphdlr.c:189
_Inout_ PIRP _In_ NTSTATUS ExceptionCode
Definition: cdprocs.h:1772
KAFFINITY FASTCALL KiSetAffinityThread(IN PKTHREAD Thread, IN KAFFINITY Affinity)
Definition: thrdschd.c:685
#define IN
Definition: typedefs.h:39
ULONG NTAPI KeAlertResumeThread(IN PKTHREAD Thread)
Definition: thrdobj.c:133
PKINTERRUPT_ROUTINE FloatingDispatch
Definition: ke.h:34
VOID FASTCALL KiUnwaitThread(IN PKTHREAD Thread, IN LONG_PTR WaitStatus, IN KPRIORITY Increment)
Definition: wait.c:89
VOID NTAPI KeReadyThread(IN PKTHREAD Thread)
Definition: thrdobj.c:115
VOID NTAPI KeThawAllThreads(VOID)
Definition: thrdobj.c:669
VOID NTAPI KeUpdateRunTime(PKTRAP_FRAME TrapFrame, KIRQL Irql)
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
KAFFINITY NTAPI KeSetAffinityProcess(IN PKPROCESS Process, IN KAFFINITY Affinity)
Definition: procobj.c:265
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
ULONGLONG KeBootTimeBias
Definition: clock.c:18
KSPIN_LOCK KiProfileLock
Definition: profobj.c:20
KDPC KiTimerExpireDpc
Definition: dpc.c:25
ULONG ProcessCount
Definition: perfdata.c:37
#define __cdecl
Definition: accygwin.h:79
BOOLEAN NTAPI KeSetAutoAlignmentProcess(IN PKPROCESS Process, IN BOOLEAN Enable)
Definition: procobj.c:313
PVOID KeUserApcDispatcher
Definition: ke.h:137
LARGE_INTEGER NTAPI KiComputeReciprocal(IN LONG Divisor, OUT PUCHAR Shift)
Definition: krnlinit.c:123
struct _DISPATCH_INFO DISPATCH_INFO
ULONG KiServiceLimit
Definition: krnlinit.c:26
LARGE_INTEGER PerfStart
Definition: ke.h:54
LARGE_INTEGER PerfEnd
Definition: ke.h:55
VOID NTAPI KeStartThread(IN OUT PKTHREAD Thread)
Definition: thrdobj.c:498
KIPI_BROADCAST_WORKER * PKIPI_BROADCAST_WORKER
Definition: ketypes.h:605
_In_ ULONG _In_opt_ POBJECT_ATTRIBUTES _In_opt_ HANDLE _Out_opt_ PCLIENT_ID _In_ PKSTART_ROUTINE StartRoutine
Definition: psfuncs.h:87
KNODE KiNode0
Definition: krnlinit.c:38
BOOLEAN NTAPI KeSetDisableBoostProcess(IN PKPROCESS Process, IN BOOLEAN Disable)
Definition: procobj.c:331
struct _KNMI_HANDLER_CALLBACK KNMI_HANDLER_CALLBACK
_Must_inspect_result_ _In_ WDFDEVICE _In_ PIRP _In_ WDFQUEUE Queue
Definition: wdfdevice.h:2221
NTSTATUS NTAPI KeInitThread(IN OUT PKTHREAD Thread, IN PVOID KernelStack, IN PKSYSTEM_ROUTINE SystemRoutine, IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext, IN PCONTEXT Context, IN PVOID Teb, IN PKPROCESS Process)
Definition: thrdobj.c:765
ULONGLONG BootCycles
Definition: kiinit.c:30
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFINTERRUPT * Interrupt
Definition: wdfinterrupt.h:372
ULONG KiUnexpectedEntrySize
unsigned char * PUCHAR
Definition: retypes.h:3
VOID NTAPI KeThawExecution(IN BOOLEAN Enable)
Definition: freeze.c:46
NTSTATUS NTAPI KiCallUserMode(IN PVOID *OutputBuffer, IN PULONG OutputLength)
Definition: usercall.c:321
PVOID NTAPI KeSwitchKernelStack(IN PVOID StackBase, IN PVOID StackLimit)
NTSTATUS NTAPI KeReleaseThread(PKTHREAD Thread)
LARGE_INTEGER PerfFreq
Definition: ke.h:57
ULONG NTAPI KeResumeThread(IN PKTHREAD Thread)
Definition: thrdobj.c:397
VOID NTAPI KeInitExceptions(VOID)
Definition: except.c:59
VOID FASTCALL KiUnlinkThread(IN PKTHREAD Thread, IN LONG_PTR WaitStatus)
Definition: wait.c:55
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
VOID __cdecl KiInterruptTemplate(VOID)
VOID NTAPI KiAdjustQuantumThread(IN PKTHREAD Thread)
Definition: thrdschd.c:461
VOID NTAPI Ke386SetIOPL(VOID)
Definition: v86vdm.c:581
VOID FASTCALL KiDeferredReadyThread(IN PKTHREAD Thread)
Definition: thrdschd.c:79
PKTHREAD FASTCALL KiSelectNextThread(IN PKPRCB Prcb)
Definition: thrdschd.c:328
PKINTERRUPT_ROUTINE NoDispatch
Definition: ke.h:32
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
VOID FASTCALL KeAcquireQueuedSpinLockAtDpcLevel(IN OUT PKSPIN_LOCK_QUEUE LockQueue)
VOID FASTCALL KiWaitTest(PVOID Object, KPRIORITY Increment)
VOID NTAPI KiCheckForKernelApcDelivery(VOID)
Definition: apc.c:36
ULONG KeFeatureBits
Definition: krnlinit.c:22
VOID NTAPI KiQuantumEnd(VOID)
Definition: dpc.c:465
LONGLONG PerfDelta
Definition: ke.h:56
ULONG KiAdjustDpcThreshold
Definition: dpc.c:21
VOID FASTCALL KiTimerListExpire(IN PLIST_ENTRY ExpiredListHead, IN KIRQL OldIrql)
Definition: dpc.c:338
VOID NTAPI KiInitializeUserApc(IN PKEXCEPTION_FRAME Reserved, IN PKTRAP_FRAME TrapFrame, IN PKNORMAL_ROUTINE NormalRoutine, IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
Definition: usercall.c:266
IO_COUNTERS IoInfo
Definition: ke.h:43
VOID FASTCALL KiInsertQueueApc(IN PKAPC Apc, IN KPRIORITY PriorityBoost)
Definition: apc.c:85
VOID NTAPI DbgBreakPointNoBugCheck(VOID)
VOID NTAPI KiStartUnexpectedRange(VOID)
PNMI_CALLBACK Callback
Definition: ke.h:76
ULONG KiTimeLimitIsrMicroseconds
Definition: dpc.c:26
PVOID Wow64
Definition: ke.h:11
PCHAR NTAPI KeBugCheckUnicodeToAnsi(IN PUNICODE_STRING Unicode, OUT PCHAR Ansi, IN ULONG Length)
Definition: bug.c:515
VOID NTAPI KeInitializeProcess(struct _KPROCESS *Process, KPRIORITY Priority, KAFFINITY Affinity, PULONG_PTR DirectoryTableBase, IN BOOLEAN Enable)
#define FASTCALL
Definition: nt_native.h:50
_Out_ PKIRQL Irql
Definition: csq.h:179
#define DECLSPEC_NORETURN
Definition: ntbasedef.h:176
VOID NTAPI KiSuspendNop(IN PKAPC Apc, IN PKNORMAL_ROUTINE *NormalRoutine, IN PVOID *NormalContext, IN PVOID *SystemArgument1, IN PVOID *SystemArgument2)
Definition: thrdobj.c:580
LONG KPRIORITY
Definition: compat.h:662
BOOLEAN NTAPI KiDeliverUserApc(PKTRAP_FRAME TrapFrame)
VOID FASTCALL KiChainedDispatch(IN PKTRAP_FRAME TrapFrame, IN PKINTERRUPT Interrupt)
Definition: irqobj.c:231
static BOOL Set
Definition: pageheap.c:10
struct _KNMI_HANDLER_CALLBACK * Next
Definition: ke.h:75
BOOLEAN KiTimeAdjustmentEnabled
Definition: time.c:19
enum _CONNECT_TYPE CONNECT_TYPE
BOOLEAN NTAPI KiTestAlert(VOID)
Definition: ketypes.h:703
uint32_t ULONG_PTR
Definition: typedefs.h:65
BOOLEAN FASTCALL KiSwapContext(IN KIRQL WaitIrql, IN PKTHREAD CurrentThread)
FAST_MUTEX KiGenericCallDpcMutex
Definition: dpc.c:24
ULONG NTAPI KeSetProcess(struct _KPROCESS *Process, KPRIORITY Increment, BOOLEAN InWait)
_CONNECT_TYPE
Definition: ke.h:20
LARGE_INTEGER KeBootTime
Definition: clock.c:17
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
Definition: wdfrequest.h:636
UCHAR KIRQL
Definition: env_spec_w32.h:591
VOID NTAPI KeBoostPriorityThread(IN PKTHREAD Thread, IN KPRIORITY Increment)
Definition: thrdobj.c:229
ULONG NTAPI KeSuspendThread(PKTHREAD Thread)
Definition: thrdobj.c:610
LIST_ENTRY KiProfileListHead
Definition: profobj.c:18
VOID NTAPI KiInitializeContextThread(PKTHREAD Thread, PKSYSTEM_ROUTINE SystemRoutine, PKSTART_ROUTINE StartRoutine, PVOID StartContext, PCONTEXT Context)
PVOID KeUserCallbackDispatcher
Definition: ke.h:138
VOID(NTAPI * PKSYSTEM_ROUTINE)(PKSTART_ROUTINE StartRoutine, PVOID StartContext)
Definition: ketypes.h:667
VOID NTAPI KiEndUnexpectedRange(VOID)
UCHAR NTAPI KeFindNextRightSetAffinity(IN UCHAR Number, IN ULONG Set)
Definition: thrdobj.c:32
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
LONG KiTickOffset
Definition: time.c:17
KSTART_ROUTINE * PKSTART_ROUTINE
Definition: ketypes.h:487
_In_ WDFREQUEST _In_ NTSTATUS _In_ CCHAR PriorityBoost
Definition: wdfrequest.h:1011
PVOID KeRaiseUserExceptionDispatcher
Definition: ke.h:140
VOID NTAPI KeRosDumpStackFrames(PULONG_PTR Frame, ULONG FrameCount)
BOOLEAN NTAPI KeRemoveQueueApc(PKAPC Apc)
long LONG
Definition: pedump.c:60
struct _PROCESS_VALUES PROCESS_VALUES
struct _DEFERRED_REVERSE_BARRIER DEFERRED_REVERSE_BARRIER
VOID NTAPI KiDispatchException(PEXCEPTION_RECORD ExceptionRecord, PKEXCEPTION_FRAME ExceptionFrame, PKTRAP_FRAME Tf, KPROCESSOR_MODE PreviousMode, BOOLEAN SearchFrames)
VOID NTAPI KeInitInterrupts(VOID)
Definition: ppc_irq.c:151
KPROFILE_SOURCE Source
Definition: ke.h:16
VOID NTAPI KiTimerExpiration(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
Definition: dpc.c:79
UCHAR KeProcessNodeSeed
Definition: krnlinit.c:41
Definition: ke.h:22
VOID FASTCALL KiSetPriorityThread(IN PKTHREAD Thread, IN KPRIORITY Priority)
Definition: thrdschd.c:511
BOOLEAN NTAPI KeFreezeExecution(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
Definition: freeze.c:26
ULONG KiDPCTimeout
Definition: dpc.c:27
VOID NTAPI KiInitializeBugCheck(VOID)
Definition: bug.c:297
BOOLEAN NTAPI KeReadStateThread(IN PKTHREAD Thread)
Definition: thrdobj.c:51
DECLSPEC_NORETURN VOID NTAPI KeBugCheckWithTf(ULONG BugCheckCode, ULONG_PTR BugCheckParameter1, ULONG_PTR BugCheckParameter2, ULONG_PTR BugCheckParameter3, ULONG_PTR BugCheckParameter4, PKTRAP_FRAME Tf)
unsigned char BOOLEAN
BOOLEAN NTAPI KeStopProfile(struct _KPROFILE *Profile)
struct _WOW64_PROCESS WOW64_PROCESS
enum _KPROFILE_SOURCE KPROFILE_SOURCE
CONNECT_TYPE Type
Definition: ke.h:30
static WCHAR Address[46]
Definition: ping.c:68
ULONG NTAPI KeQueryIntervalProfile(KPROFILE_SOURCE ProfileSource)
struct _KPROFILE_SOURCE_OBJECT KPROFILE_SOURCE_OBJECT
VOID NTAPI KiRestoreProcessorControlState(IN PKPROCESSOR_STATE ProcessorState)
ULONG KeTimeAdjustment
Definition: time.c:18
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
ULONG KiIdealDpcRate
Definition: dpc.c:22
Definition: bufpool.h:45
VOID NTAPI KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN OUT PCONTEXT Context)
Definition: context.c:169
Definition: ke.h:66
LARGE_INTEGER KiTimeIncrementReciprocal
Definition: timerobj.c:18
UCHAR KiTimeIncrementShiftCount
Definition: timerobj.c:19
PKDPC Dpc
Definition: ke.h:68
ULONG KiMask32Array[MAXIMUM_PRIORITY]
Definition: thrdobj.c:18
ULONGLONG BootCyclesEnd
Definition: kiinit.c:30
PULONG KiInterruptTemplateDispatch
LIST_ENTRY ListEntry
Definition: ke.h:17
VOID FASTCALL KiExitDispatcher(KIRQL OldIrql)
VOID NTAPI KiReadyThread(IN PKTHREAD Thread)
Definition: thrdschd.c:429
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:859
BOOLEAN FASTCALL KiInsertTimerTable(IN PKTIMER Timer, IN ULONG Hand)
Definition: timerobj.c:63
#define PCHAR
Definition: match.c:90
DECLSPEC_NORETURN VOID FASTCALL KiServiceExit(IN PKTRAP_FRAME TrapFrame, IN NTSTATUS Status)
Definition: traphdlr.c:150
#define MAXIMUM_PRIORITY
DWORD Interval
Definition: netstat.c:33
_Out_ PULONG UserTime
Definition: kefuncs.h:771
VOID(NTAPI * PKINTERRUPT_ROUTINE)(VOID)
Definition: ketypes.h:490
VOID NTAPI KeSetIntervalProfile(ULONG Interval, KPROFILE_SOURCE ProfileSource)
PULONG KiInterruptTemplateObject
Status
Definition: gdiplustypes.h:24
FAST_MUTEX
Definition: extypes.h:17
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
Definition: ketypes.h:675
BOOLEAN NTAPI KeInvalidateAllCaches(VOID)
Definition: cpu.c:462
int64_t LONGLONG
Definition: typedefs.h:68
ULONG KiFreezeFlag
Definition: cpu.c:38
USHORT KeProcessorArchitecture
Definition: krnlinit.c:19
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
int Count
Definition: noreturn.cpp:7
USHORT KeProcessorRevision
Definition: krnlinit.c:21
#define TIMER_TABLE_SIZE
Definition: ketypes.h:836
PCHAR(NTAPI * PKE_BUGCHECK_UNICODE_TO_ANSI)(IN PUNICODE_STRING Unicode, IN PCHAR Ansi, IN ULONG Length)
Definition: ke.h:82
LONGLONG TSCStart
Definition: ke.h:58
VOID NTAPI KiExpireTimers(PKDPC Dpc, PVOID DeferredContext, PVOID SystemArgument1, PVOID SystemArgument2)
VOID FASTCALL KeZeroPages(IN PVOID Address, IN ULONG Size)
Definition: stubs.c:91
struct _DPC_QUEUE_ENTRY DPC_QUEUE_ENTRY
VOID NTAPI KeQueryValuesProcess(IN PKPROCESS Process, PPROCESS_VALUES Values)
Definition: procobj.c:522
char CCHAR
Definition: typedefs.h:51
uint64_t ULONGLONG
Definition: typedefs.h:67
struct _WOW64_PROCESS * PWOW64_PROCESS
BOOLEAN FASTCALL KiInsertTreeTimer(IN PKTIMER Timer, IN LARGE_INTEGER Interval)
Definition: timerobj.c:26
PKINTERRUPT_ROUTINE InterruptDispatch
Definition: ke.h:33
NTSTATUS NTAPI KiRaiseException(IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT Context, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN BOOLEAN SearchFrames)
Definition: except.c:89
PKNODE KeNodeBlock[1]
Definition: krnlinit.c:39
ULONG KiMinimumDpcRate
Definition: dpc.c:20
struct _DEFERRED_REVERSE_BARRIER * PDEFERRED_REVERSE_BARRIER
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:170
GLuint address
Definition: glext.h:9393
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
BOOLEAN NTAPI KeAlertThread(IN PKTHREAD Thread, IN KPROCESSOR_MODE AlertMode)
Definition: thrdobj.c:185
struct _KI_SAMPLE_MAP * PKI_SAMPLE_MAP
DECLSPEC_NORETURN VOID FASTCALL KiSystemFatalException(IN ULONG ExceptionCode, IN PKTRAP_FRAME TrapFrame)
Definition: except.c:406
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
KSPIN_LOCK KiNmiCallbackListLock
Definition: bug.c:30
LIST_ENTRY KeBugcheckCallbackListHead
Definition: bug.c:18
PVOID KeUserExceptionDispatcher
Definition: ke.h:139
VOID FASTCALL KiInterruptDispatch(IN PKTRAP_FRAME TrapFrame, IN PKINTERRUPT Interrupt)
Definition: irqobj.c:197
KTIMER_TABLE_ENTRY KiTimerTableListHead[TIMER_TABLE_SIZE]
Definition: timerobj.c:17
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:651
unsigned char UCHAR
Definition: xmlstorage.h:181
enum _CONNECT_TYPE * PCONNECT_TYPE
char * PBOOLEAN
Definition: retypes.h:11
ULONG KeTimeIncrement
Definition: clock.c:22
VOID FASTCALL KiCompleteTimer(IN PKTIMER Timer, IN PKSPIN_LOCK_QUEUE LockQueue)
Definition: timerobj.c:167
NMI_CALLBACK * PNMI_CALLBACK
Definition: ketypes.h:338
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:790
Definition: ketypes.h:687
KDEFERRED_ROUTINE * PKDEFERRED_ROUTINE
Definition: ketypes.h:678
VOID FASTCALL KiAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: wait.c:107
VOID NTAPI KiSaveProcessorControlState(OUT PKPROCESSOR_STATE ProcessorState)
Definition: cpu.c:375
BOOLEAN KeThreadDpcEnable
Definition: dpc.c:23
LONGLONG TSCDelta
Definition: ke.h:60
VOID NTAPI KiAttachProcess(struct _KTHREAD *Thread, struct _KPROCESS *Process, PKLOCK_QUEUE_HANDLE ApcLock, struct _KAPC_STATE *SavedApcState)
Definition: btrfs_drv.h:1922
Definition: ketypes.h:535
KPRIORITY NTAPI KeSetPriorityAndQuantumProcess(IN PKPROCESS Process, IN KPRIORITY Priority, IN UCHAR Quantum OPTIONAL)
Definition: procobj.c:349
EX_PUSH_LOCK KernelAddressSpaceLock
BOOLEAN NTAPI KeStartProfile(struct _KPROFILE *Profile, PVOID Buffer)
Definition: typedefs.h:119
ULONG_PTR KiIdleSummary
Definition: thrdschd.c:25
DECLSPEC_NORETURN VOID FASTCALL KiCallbackReturn(IN PVOID Stack, IN NTSTATUS Status)
VOID FASTCALL KiIpiSend(KAFFINITY TargetSet, ULONG IpiRequest)
ULONG TotalProcessors
Definition: ke.h:49
VOID(NTAPI * PKIPI_WORKER)(IN OUT PKIPI_CONTEXT PacketContext, IN PVOID Parameter1 OPTIONAL, IN PVOID Parameter2 OPTIONAL, IN PVOID Parameter3 OPTIONAL)
Definition: ketypes.h:576
KEVENT KiSwapEvent
Definition: procobj.c:21
LONGLONG TSCEnd
Definition: ke.h:59
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:204
VOID FASTCALL KiIpiSignalPacketDone(IN PKIPI_CONTEXT PacketContext)
Definition: ipi.c:55
KAFFINITY KeActiveProcessors
Definition: krnlinit.c:23
VOID NTAPI KeBalanceSetManager(IN PVOID Context)
Definition: balmgr.c:137
LIST_ENTRY KiProfileSourceListHead
Definition: profobj.c:19
VOID NTAPI KeInitializeProfile(struct _KPROFILE *Profile, struct _KPROCESS *Process, PVOID ImageBase, SIZE_T ImageSize, ULONG BucketSize, KPROFILE_SOURCE ProfileSource, KAFFINITY Affinity)
ULONG_PTR KiDoubleFaultStack
Definition: kiinit.c:35
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
NTSTATUS(NTAPI * PGDI_BATCHFLUSH_ROUTINE)(VOID)
Definition: pstypes.h:554
EPROCESS KiInitialProcess
Definition: krnlinit.c:45
UCHAR KeNumberNodes
Definition: krnlinit.c:40
VOID NTAPI KiSwapProcess(struct _KPROCESS *NewProcess, struct _KPROCESS *OldProcess)
Definition: stubs.c:139
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
Definition: ketypes.h:675
ULONG_PTR SIZE_T
Definition: typedefs.h:80
ULONG KiMaximumDpcQueueDepth
Definition: dpc.c:19
* PFAST_MUTEX
Definition: extypes.h:17
VOID FASTCALL KiAcquireGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
Definition: wait.c:122
ULONG NTAPI KeV86Exception(ULONG ExceptionNr, PKTRAP_FRAME Tf, ULONG address)
PKTHREAD FASTCALL KiIdleSchedule(IN PKPRCB Prcb)
Definition: thrdschd.c:32
VOID FASTCALL KeSignalGateBoostPriority(PKGATE Gate)
struct _PROCESS_VALUES * PPROCESS_VALUES
struct _KPROFILE_SOURCE_OBJECT * PKPROFILE_SOURCE_OBJECT
PKDEFERRED_ROUTINE Routine
Definition: ke.h:69
unsigned short USHORT
Definition: pedump.c:61
LONG_PTR FASTCALL KiSwapThread(IN PKTHREAD Thread, IN PKPRCB Prcb)
Definition: thrdschd.c:355
VOID FASTCALL KeWaitForGate(PKGATE Gate, KWAIT_REASON WaitReason, KPROCESSOR_MODE WaitMode)
ULONG_PTR KAFFINITY
Definition: compat.h:85
VOID NTAPI KeInitializeThread(IN PKPROCESS Process, IN OUT PKTHREAD Thread, IN PKSYSTEM_ROUTINE SystemRoutine, IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext, IN PCONTEXT Context, IN PVOID Teb, IN PVOID KernelStack)
Definition: thrdobj.c:900
ULONG NTAPI KeQueryRuntimeProcess(IN PKPROCESS Process, OUT PULONG UserTime)
Definition: procobj.c:857
PKPRCB KiProcessorBlock[]
Definition: krnlinit.c:32
VOID NTAPI KiMoveApcState(PKAPC_STATE OldState, PKAPC_STATE NewState)
Definition: apc.c:538
ETHREAD KiInitialThread
Definition: krnlinit.c:44
PVOID Context
Definition: ke.h:70
PGDI_BATCHFLUSH_ROUTINE KeGdiFlushUserBatch
Definition: win32.c:20
LIST_ENTRY KeBugcheckReasonCallbackListHead
Definition: bug.c:19
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
LONG NTAPI KiInsertQueue(IN PKQUEUE Queue, IN PLIST_ENTRY Entry, BOOLEAN Head)
VOID NTAPI KiSuspendRundown(IN PKAPC Apc)
Definition: thrdobj.c:572
VOID NTAPI KiInitSpinLocks(IN PKPRCB Prcb, IN CCHAR Number)
Definition: krnlinit.c:187
BOOLEAN NTAPI KiHandleNmi(VOID)
Definition: bug.c:1162
_In_ ULONG Shift
Definition: rtlfuncs.h:2683
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
unsigned int * PULONG
Definition: retypes.h:1
VOID NTAPI KiSaveProcessorState(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
Definition: cpu.c:1143
struct _DISPATCH_INFO * PDISPATCH_INFO
LARGE_INTEGER TotalKernelTime
Definition: ke.h:41
struct _DPC_QUEUE_ENTRY * PDPC_QUEUE_ENTRY
VOID FASTCALL KiActivateWaiterQueue(IN PKQUEUE Queue)
Definition: queue.c:24
VOID NTAPI KiAddProfileEvent(KPROFILE_SOURCE Source, ULONG Pc)
VOID NTAPI KiSuspendThread(IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
Definition: thrdobj.c:596
BOOLEAN NTAPI KeTestAlertThread(IN KPROCESSOR_MODE AlertMode)
Definition: thrdobj.c:731
DECLSPEC_NORETURN VOID NTAPI KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: kiinit.c:373
USHORT KeProcessorLevel
Definition: krnlinit.c:20
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
enum _KWAIT_REASON KWAIT_REASON
BOOLEAN NTAPI KeInitSystem(VOID)
Definition: krnlinit.c:293
PKINTERRUPT_ROUTINE * FlatDispatch
Definition: ke.h:36
#define OUT
Definition: typedefs.h:40
ULONG NTAPI KeForceResumeThread(IN PKTHREAD Thread)
Definition: thrdobj.c:276
ULONG MHz
Definition: ke.h:61
PULONG KiInterruptTemplate2ndDispatch
_In_ LARGE_INTEGER Divisor
Definition: rtlfuncs.h:3046
VOID NTAPI KeFreezeAllThreads(VOID)
Definition: thrdobj.c:315
unsigned int ULONG
Definition: retypes.h:1
VOID NTAPI KiIpiSendPacket(IN KAFFINITY TargetProcessors, IN PKIPI_WORKER WorkerFunction, IN PKIPI_BROADCAST_WORKER BroadcastFunction, IN ULONG_PTR Context, IN PULONG Count)
Definition: ipi.c:43
uint32_t * PULONG_PTR
Definition: typedefs.h:65
LARGE_INTEGER TotalUserTime
Definition: ke.h:42
struct _KNMI_HANDLER_CALLBACK * PKNMI_HANDLER_CALLBACK
LIST_ENTRY KiStackInSwapListHead
Definition: procobj.c:20
PVOID NTAPI KiRosPcToUserFileHeader(IN PVOID Eip, OUT PLDR_DATA_TABLE_ENTRY *LdrEntry)
Definition: bug.c:106
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167
LIST_ENTRY KiProcessInSwapListHead
Definition: procobj.c:19
LIST_ENTRY KiProcessOutSwapListHead
Definition: procobj.c:19
VOID NTAPI KeSetQuantumProcess(IN PKPROCESS Process, IN UCHAR Quantum)
Definition: procobj.c:229
VOID(NTAPI * PKNORMAL_ROUTINE)(IN PVOID NormalContext OPTIONAL, IN PVOID SystemArgument1 OPTIONAL, IN PVOID SystemArgument2 OPTIONAL)
Definition: ketypes.h:674
BOOLEAN ExCmosClockIsSane
Definition: init.c:90
VOID NTAPI KeSetSystemTime(IN PLARGE_INTEGER NewSystemTime, OUT PLARGE_INTEGER OldSystemTime, IN BOOLEAN FixInterruptTime, IN PLARGE_INTEGER HalTime)
Definition: clock.c:28
PKINTERRUPT_ROUTINE ChainedDispatch
Definition: ke.h:35
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
Definition: CrNtStubs.h:42
VOID FASTCALL KeInitializeGate(PKGATE Gate)
VOID NTAPI KeDumpStackFrames(PULONG Frame)
Definition: stubs.c:92
VOID NTAPI KiSetupStackAndInitializeKernel(IN PKPROCESS InitProcess, IN PKTHREAD InitThread, IN PVOID IdleStack, IN PKPRCB Prcb, IN CCHAR Number, IN PLOADER_PARAMETER_BLOCK LoaderBlock)
NTSTATUS NTAPI KiContinue(IN PCONTEXT Context, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame)
Definition: except.c:41
VOID NTAPI KeInitializeEventPair(PKEVENT_PAIR EventPair)
LONG NTAPI KeQueryBasePriorityThread(IN PKTHREAD Thread)
Definition: thrdobj.c:61
struct _KI_SAMPLE_MAP KI_SAMPLE_MAP
base of all file and directory entries
Definition: entries.h:82
VOID NTAPI KiInitializeMachineType(VOID)
Definition: kiinit.c:311
VOID FASTCALL KiIpiSignalPacketDoneAndStall(IN PKIPI_CONTEXT PacketContext, IN volatile PULONG ReverseStall)
Definition: ipi.c:63
VOID FASTCALL KiRetireDpcList(IN PKPRCB Prcb)
Definition: dpc.c:561
KSPIN_LOCK BugCheckCallbackLock
Definition: bug.c:20
BOOLEAN FASTCALL KeInvalidAccessAllowed(IN PVOID TrapInformation OPTIONAL)
Definition: exp.c:801
* PKAPC_STATE
Definition: ketypes.h:1280
LIST_ENTRY KiProcessListHead
Definition: procobj.c:18
VOID NTAPI KeFlushCurrentTb(VOID)
Definition: cpu.c:325
BOOLEAN NTAPI KeDisableThreadApcQueueing(IN PKTHREAD Thread)
PKNMI_HANDLER_CALLBACK KiNmiCallbackListHead
Definition: bug.c:29
VOID FASTCALL KiProcessDeferredReadyList(IN PKPRCB Prcb)
Definition: thrdschd.c:41
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
VOID NTAPI KeUninitThread(IN PKTHREAD Thread)
Definition: thrdobj.c:926
_In_opt_ PVOID DeferredContext
Definition: ketypes.h:675