ReactOS  0.4.15-dev-1638-gc0caa5c
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_PTR KiBugCheckData[5];
146 extern ULONG KiFreezeFlag;
147 extern ULONG KiDPCTimeout;
150 extern ULONG ProcessCount;
152 
153 /* MACROS *************************************************************************/
154 
155 #define AFFINITY_MASK(Id) KiMask32Array[Id]
156 #define PRIORITY_MASK(Id) KiMask32Array[Id]
157 
158 /* Tells us if the Timer or Event is a Syncronization or Notification Object */
159 #define TIMER_OR_EVENT_TYPE 0x7L
160 
161 /* One of the Reserved Wait Blocks, this one is for the Thread's Timer */
162 #define TIMER_WAIT_BLOCK 0x3L
163 
164 /* INTERNAL KERNEL FUNCTIONS ************************************************/
165 
166 /* Finds a new thread to run */
167 LONG_PTR
168 FASTCALL
171  IN PKPRCB Prcb
172 );
173 
174 VOID
175 NTAPI
178 );
179 
180 BOOLEAN
181 NTAPI
184  IN BOOLEAN Disable
185 );
186 
187 BOOLEAN
188 NTAPI
191  IN BOOLEAN Disable
192 );
193 
194 BOOLEAN
195 NTAPI
199 );
200 
201 KAFFINITY
202 NTAPI
206 );
207 
208 VOID
209 NTAPI
213 );
214 
215 VOID
216 NTAPI
218 
219 VOID
220 NTAPI
222 
223 ULONG
224 NTAPI
226 
227 BOOLEAN
228 NTAPI
230 
231 BOOLEAN
232 FASTCALL
234  IN KIRQL WaitIrql,
235  IN PKTHREAD CurrentThread
236 );
237 
238 VOID
239 NTAPI
241 
242 VOID
243 FASTCALL
245 
246 VOID
247 FASTCALL
249 
250 PKTHREAD
251 FASTCALL
253  IN PKPRCB Prcb
254 );
255 
256 VOID
257 FASTCALL
259  IN PKPRCB Prcb
260 );
261 
262 KAFFINITY
263 FASTCALL
267 );
268 
269 PKTHREAD
270 FASTCALL
272  IN PKPRCB Prcb
273 );
274 
275 BOOLEAN
276 FASTCALL
278  IN PKTIMER Timer,
279  IN ULONG Hand
280 );
281 
282 VOID
283 FASTCALL
285  IN PLIST_ENTRY ExpiredListHead,
287 );
288 
289 BOOLEAN
290 FASTCALL
292  IN PKTIMER Timer,
294 );
295 
296 VOID
297 FASTCALL
299  IN PKTIMER Timer,
300  IN PKSPIN_LOCK_QUEUE LockQueue
301 );
302 
303 /* gmutex.c ********************************************************************/
304 
305 VOID
306 FASTCALL
308  IN OUT PKGUARDED_MUTEX GuardedMutex
309 );
310 
311 VOID
312 FASTCALL
314  IN PFAST_MUTEX FastMutex
315 );
316 
317 /* gate.c **********************************************************************/
318 
319 VOID
320 FASTCALL
322 
323 VOID
324 FASTCALL
326 
327 VOID
328 FASTCALL
330  PKGATE Gate,
331  KWAIT_REASON WaitReason,
332  KPROCESSOR_MODE WaitMode
333 );
334 
335 /* ipi.c ********************************************************************/
336 
337 VOID
338 FASTCALL
339 KiIpiSend(
340  KAFFINITY TargetSet,
341  ULONG IpiRequest
342 );
343 
344 VOID
345 NTAPI
347  IN KAFFINITY TargetProcessors,
348  IN PKIPI_WORKER WorkerFunction,
349  IN PKIPI_BROADCAST_WORKER BroadcastFunction,
351  IN PULONG Count
352 );
353 
354 VOID
355 FASTCALL
357  IN PKIPI_CONTEXT PacketContext
358 );
359 
360 VOID
361 FASTCALL
363  IN PKIPI_CONTEXT PacketContext,
364  IN volatile PULONG ReverseStall
365 );
366 
367 /* next file ***************************************************************/
368 
369 UCHAR
370 NTAPI
372  IN UCHAR Number,
373  IN ULONG Set
374 );
375 
376 VOID
377 NTAPI
379 
380 VOID
381 NTAPI
383  struct _KPROFILE* Profile,
384  struct _KPROCESS* Process,
385  PVOID ImageBase,
386  SIZE_T ImageSize,
387  ULONG BucketSize,
388  KPROFILE_SOURCE ProfileSource,
390 );
391 
392 BOOLEAN
393 NTAPI
395  struct _KPROFILE* Profile,
396  PVOID Buffer
397 );
398 
399 BOOLEAN
400 NTAPI
401 KeStopProfile(struct _KPROFILE* Profile);
402 
403 ULONG
404 NTAPI
406 
407 VOID
408 NTAPI
410  ULONG Interval,
411  KPROFILE_SOURCE ProfileSource
412 );
413 
414 VOID
415 NTAPI
417  PKTRAP_FRAME TrapFrame,
418  KIRQL Irql
419 );
420 
421 VOID
422 NTAPI
424  PKDPC Dpc,
428 );
429 
430 VOID
431 NTAPI
435  IN PKSYSTEM_ROUTINE SystemRoutine,
437  IN PVOID StartContext,
439  IN PVOID Teb,
440  IN PVOID KernelStack
441 );
442 
443 VOID
444 NTAPI
447 );
448 
449 NTSTATUS
450 NTAPI
453  IN PVOID KernelStack,
454  IN PKSYSTEM_ROUTINE SystemRoutine,
456  IN PVOID StartContext,
458  IN PVOID Teb,
460 );
461 
462 VOID
463 NTAPI
466  PKSYSTEM_ROUTINE SystemRoutine,
468  PVOID StartContext,
470 );
471 
472 VOID
473 NTAPI
476 );
477 
478 BOOLEAN
479 NTAPI
482  IN KPROCESSOR_MODE AlertMode
483 );
484 
485 ULONG
486 NTAPI
489 );
490 
491 ULONG
492 NTAPI
495 );
496 
497 PVOID
498 NTAPI
500  IN PVOID StackBase,
501  IN PVOID StackLimit
502 );
503 
504 VOID
505 NTAPI
507 
508 NTSTATUS
509 NTAPI
511 
512 VOID
513 NTAPI
515  IN PKAPC Apc
516 );
517 
518 VOID
519 NTAPI
521  IN PKAPC Apc,
522  IN PKNORMAL_ROUTINE *NormalRoutine,
523  IN PVOID *NormalContext,
526 );
527 
528 VOID
529 NTAPI
531  IN PVOID NormalContext,
534 );
535 
536 LONG
537 NTAPI
539 
540 VOID
541 FASTCALL
545 );
546 
547 VOID
548 FASTCALL
551  IN LONG_PTR WaitStatus
552 );
553 
554 VOID
555 NTAPI
557 
558 BOOLEAN
559 NTAPI
561 
562 VOID
563 FASTCALL
566  IN LONG_PTR WaitStatus,
568 );
569 
570 VOID
571 NTAPI
573  struct _KPROCESS *Process,
576  PULONG_PTR DirectoryTableBase,
578 );
579 
580 VOID
581 NTAPI
584  IN UCHAR Quantum
585 );
586 
587 KPRIORITY
588 NTAPI
592  IN UCHAR Quantum OPTIONAL
593 );
594 
595 ULONG
596 NTAPI
598 
599 VOID
600 NTAPI
602  VOID
603 );
604 
605 VOID
606 NTAPI
608  VOID
609 );
610 
611 BOOLEAN
612 NTAPI
614 
615 VOID
616 FASTCALL
617 KiWaitTest(
618  PVOID Object,
620 );
621 
622 VOID
623 NTAPI
626  PKEXCEPTION_FRAME ExeptionFrame,
627  PKTRAP_FRAME TrapFrame,
628  ULONG ContextFlags,
630 );
631 
632 VOID
633 NTAPI
635 
636 VOID
637 NTAPI
639 
640 LONG
641 NTAPI
643  IN PKQUEUE Queue,
645  BOOLEAN Head
646 );
647 
648 VOID
649 NTAPI
651  IN PKDPC Dpc,
655 );
656 
657 ULONG
658 NTAPI
660  struct _KPROCESS* Process,
662  BOOLEAN InWait
663 );
664 
665 VOID
666 NTAPI
668 
669 VOID
670 NTAPI
673  IN PKTRAP_FRAME TrapFrame,
674  IN PKNORMAL_ROUTINE NormalRoutine,
675  IN PVOID NormalContext,
678 );
679 
681 NTAPI
685 );
686 
687 VOID
688 NTAPI
690  struct _KTHREAD *Thread,
691  struct _KPROCESS *Process,
692  PKLOCK_QUEUE_HANDLE ApcLock,
693  struct _KAPC_STATE *SavedApcState
694 );
695 
696 VOID
697 NTAPI
699  struct _KPROCESS *NewProcess,
700  struct _KPROCESS *OldProcess
701 );
702 
703 BOOLEAN
704 NTAPI
706 
707 BOOLEAN
708 NTAPI
710 
711 VOID
712 FASTCALL
714 
715 ULONG
716 NTAPI
719 
720 VOID
721 NTAPI
723  PPROCESS_VALUES Values);
724 
725 /* INITIALIZATION FUNCTIONS *************************************************/
726 
727 BOOLEAN
728 NTAPI
730 
731 VOID
732 NTAPI
734 
735 VOID
736 NTAPI
738 
739 VOID
740 NTAPI
742 
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 
1018 VOID
1019 FASTCALL
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)
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
VOID NTAPI KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: kiinit.c:372
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
ULONG_PTR KiBugCheckData[5]
Definition: bug.c:27
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
VOID FASTCALL KiIdleLoop(VOID)
Definition: stubs.c:172
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
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