ReactOS  0.4.14-dev-52-g6116262
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 INIT_FUNCTION
728 BOOLEAN
729 NTAPI
731 
732 INIT_FUNCTION
733 VOID
734 NTAPI
736 
737 VOID
738 NTAPI
740 
741 INIT_FUNCTION
742 VOID
743 NTAPI
745 
746 INIT_FUNCTION
747 VOID
748 NTAPI
750  IN PLOADER_PARAMETER_BLOCK LoaderBlock
751 );
752 
753 BOOLEAN
754 NTAPI
755 KiDeliverUserApc(PKTRAP_FRAME TrapFrame);
756 
757 VOID
758 NTAPI
760  PKAPC_STATE OldState,
761  PKAPC_STATE NewState
762 );
763 
764 VOID
765 NTAPI
768  ULONG Pc
769 );
770 
771 VOID
772 NTAPI
774  PEXCEPTION_RECORD ExceptionRecord,
775  PKEXCEPTION_FRAME ExceptionFrame,
776  PKTRAP_FRAME Tf,
778  BOOLEAN SearchFrames
779 );
780 
781 VOID
782 NTAPI
784  IN PKTRAP_FRAME TrapFrame,
785  IN PKEXCEPTION_FRAME ExceptionFrame,
787 );
788 
790 VOID
791 NTAPI
793  ULONG BugCheckCode,
794  ULONG_PTR BugCheckParameter1,
795  ULONG_PTR BugCheckParameter2,
796  ULONG_PTR BugCheckParameter3,
797  ULONG_PTR BugCheckParameter4,
798  PKTRAP_FRAME Tf
799 );
800 
801 BOOLEAN
802 NTAPI
804 
805 VOID
806 NTAPI
808 
809 BOOLEAN
810 NTAPI
812 
813 VOID
814 FASTCALL
816  IN ULONG Size);
817 
818 BOOLEAN
819 FASTCALL
820 KeInvalidAccessAllowed(IN PVOID TrapInformation OPTIONAL);
821 
822 VOID
823 NTAPI
825  PULONG_PTR Frame,
826  ULONG FrameCount
827 );
828 
829 VOID
830 NTAPI
832  IN PLARGE_INTEGER NewSystemTime,
833  OUT PLARGE_INTEGER OldSystemTime,
834  IN BOOLEAN FixInterruptTime,
835  IN PLARGE_INTEGER HalTime
836 );
837 
838 ULONG
839 NTAPI
841  ULONG ExceptionNr,
842  PKTRAP_FRAME Tf,
843  ULONG address
844 );
845 
846 VOID
847 NTAPI
849  VOID
850 );
851 
852 VOID
853 NTAPI
855  VOID
856 );
857 
858 NTSTATUS
859 NTAPI
861  IN PEXCEPTION_RECORD ExceptionRecord,
863  IN PKEXCEPTION_FRAME ExceptionFrame,
864  IN PKTRAP_FRAME TrapFrame,
865  IN BOOLEAN SearchFrames
866 );
867 
868 NTSTATUS
869 NTAPI
870 KiContinue(
872  IN PKEXCEPTION_FRAME ExceptionFrame,
873  IN PKTRAP_FRAME TrapFrame
874 );
875 
877 VOID
878 FASTCALL
880  IN PKTRAP_FRAME TrapFrame,
882 );
883 
885 VOID
886 FASTCALL
888  IN PKTRAP_FRAME TrapFrame
889 );
890 
891 #ifndef _M_AMD64
892 VOID
893 FASTCALL
895  IN PKTRAP_FRAME TrapFrame,
896  IN PKINTERRUPT Interrupt
897 );
898 #endif
899 
900 VOID
901 FASTCALL
903  IN PKTRAP_FRAME TrapFrame,
904  IN PKINTERRUPT Interrupt
905 );
906 
907 INIT_FUNCTION
908 VOID
909 NTAPI
911  VOID
912 );
913 
914 VOID
915 NTAPI
917  IN PKPROCESS InitProcess,
918  IN PKTHREAD InitThread,
919  IN PVOID IdleStack,
920  IN PKPRCB Prcb,
921  IN CCHAR Number,
922  IN PLOADER_PARAMETER_BLOCK LoaderBlock
923 );
924 
925 INIT_FUNCTION
926 VOID
927 NTAPI
929  IN PKPRCB Prcb,
930  IN CCHAR Number
931 );
932 
933 INIT_FUNCTION
935 NTAPI
937  IN LONG Divisor,
939 );
940 
941 INIT_FUNCTION
942 VOID
943 NTAPI
945  VOID
946 );
947 
948 VOID
949 FASTCALL
951  IN PKAPC Apc,
953 );
954 
955 NTSTATUS
956 NTAPI
959  IN PULONG OutputLength
960 );
961 
963 VOID
964 FASTCALL
966  IN PVOID Stack,
968 );
969 
970 INIT_FUNCTION
971 VOID
972 NTAPI
974 
975 BOOLEAN
976 NTAPI
978  IN PKEXCEPTION_FRAME ExceptionFrame);
979 
980 VOID
981 NTAPI
983 
984 VOID
985 FASTCALL
987  IN OUT PKSPIN_LOCK_QUEUE LockQueue
988 );
989 
990 VOID
991 FASTCALL
993  IN OUT PKSPIN_LOCK_QUEUE LockQueue
994 );
995 
996 VOID
997 NTAPI
999  IN PKPROCESSOR_STATE ProcessorState
1000 );
1001 
1002 VOID
1003 NTAPI
1005  OUT PKPROCESSOR_STATE ProcessorState
1006 );
1007 
1008 VOID
1009 NTAPI
1011  IN PKTRAP_FRAME TrapFrame,
1012  IN PKEXCEPTION_FRAME ExceptionFrame
1013 );
1014 
1015 VOID
1016 FASTCALL
1018  IN PKPRCB Prcb
1019 );
1020 
1021 VOID
1022 NTAPI
1023 KiQuantumEnd(
1024  VOID
1025 );
1026 
1027 VOID
1028 FASTCALL
1029 KiIdleLoop(
1030  VOID
1031 );
1032 
1034 VOID
1035 FASTCALL
1038  IN PKTRAP_FRAME TrapFrame
1039 );
1040 
1041 PVOID
1042 NTAPI
1044  OUT PLDR_DATA_TABLE_ENTRY *LdrEntry,
1045  IN BOOLEAN DriversOnly,
1046  OUT PBOOLEAN InKernel);
1047 
1048 PVOID
1049 NTAPI
1051  OUT PLDR_DATA_TABLE_ENTRY *LdrEntry);
1052 
1053 PCHAR
1054 NTAPI
1056  IN PUNICODE_STRING Unicode,
1057  OUT PCHAR Ansi,
1058  IN ULONG Length
1059 );
1060 
1061 #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)
signed char * PCHAR
Definition: retypes.h:7
BOOLEAN NTAPI KeSetDisableBoostThread(IN OUT PKTHREAD Thread, IN BOOLEAN Disable)
Definition: thrdobj.c:95
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:44
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:1782
KAFFINITY FASTCALL KiSetAffinityThread(IN PKTHREAD Thread, IN KAFFINITY Affinity)
Definition: thrdschd.c:685
#define IN
Definition: typedefs.h:38
ULONG NTAPI KeAlertResumeThread(IN PKTHREAD Thread)
Definition: thrdobj.c:133
PKINTERRUPT_ROUTINE FloatingDispatch
Definition: ke.h:34
enum _KPROFILE_SOURCE KPROFILE_SOURCE
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)
KAFFINITY NTAPI KeSetAffinityProcess(IN PKPROCESS Process, IN KAFFINITY Affinity)
Definition: procobj.c:265
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
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
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
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: stubs.c:439
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 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
_In_ KPRIORITY Priority
Definition: kefuncs.h:516
VOID __cdecl KiInterruptTemplate(VOID)
VOID NTAPI KiAdjustQuantumThread(IN PKTHREAD Thread)
Definition: thrdschd.c:461
VOID NTAPI Ke386SetIOPL(VOID)
Definition: v86vdm.c:580
VOID FASTCALL KiDeferredReadyThread(IN PKTHREAD Thread)
Definition: thrdschd.c:79
PKTHREAD FASTCALL KiSelectNextThread(IN PKPRCB Prcb)
Definition: thrdschd.c:328
INIT_FUNCTION VOID NTAPI KiInitMachineDependent(VOID)
Definition: kiinit.c:46
PKINTERRUPT_ROUTINE NoDispatch
Definition: ke.h:32
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
VOID FASTCALL KeAcquireQueuedSpinLockAtDpcLevel(IN OUT PKSPIN_LOCK_QUEUE LockQueue)
VOID FASTCALL KiWaitTest(PVOID Object, KPRIORITY Increment)
VOID NTAPI KiCheckForKernelApcDelivery(VOID)
Definition: apc.c:36
INIT_FUNCTION VOID NTAPI KiInitSpinLocks(IN PKPRCB Prcb, IN CCHAR Number)
Definition: krnlinit.c:187
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: stubs.c:203
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:586
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:454
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:661
uint32_t ULONG_PTR
Definition: typedefs.h:63
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
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:625
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
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
INIT_FUNCTION VOID NTAPI KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: kiinit.c:371
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
_In_ CCHAR PriorityBoost
Definition: iofuncs.h:763
ULONG KiDPCTimeout
Definition: dpc.c:27
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
CONNECT_TYPE Type
Definition: ke.h:30
static WCHAR Address[46]
Definition: ping.c:68
INIT_FUNCTION VOID NTAPI KiInitializeBugCheck(VOID)
Definition: bug.c:368
ULONG NTAPI KeQueryIntervalProfile(KPROFILE_SOURCE ProfileSource)
struct _KPROFILE_SOURCE_OBJECT KPROFILE_SOURCE_OBJECT
VOID NTAPI KiRestoreProcessorControlState(IN PKPROCESSOR_STATE ProcessorState)
INIT_FUNCTION BOOLEAN NTAPI KeInitSystem(VOID)
Definition: krnlinit.c:293
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:147
Definition: ke.h:66
_Must_inspect_result_ __drv_aliasesMem _In_ PDEVICE_OBJECT _In_opt_ PVOID _In_ ULONG _Out_opt_ PVOID OutputBuffer
Definition: iofuncs.h:713
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
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:784
VOID(NTAPI * PKINTERRUPT_ROUTINE)(VOID)
Definition: ketypes.h:490
VOID NTAPI KeSetIntervalProfile(ULONG Interval, KPROFILE_SOURCE ProfileSource)
PULONG KiInterruptTemplateObject
FAST_MUTEX
Definition: extypes.h:17
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
Definition: ketypes.h:675
BOOLEAN NTAPI KeInvalidateAllCaches(VOID)
Definition: cpu.c:459
int64_t LONGLONG
Definition: typedefs.h:66
ULONG KiFreezeFlag
Definition: cpu.c:38
USHORT KeProcessorArchitecture
Definition: krnlinit.c:19
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
USHORT KeProcessorRevision
Definition: krnlinit.c:21
_In_ LARGE_INTEGER _In_opt_ PKDPC Dpc
Definition: kefuncs.h:524
#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:82
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:50
uint64_t ULONGLONG
Definition: typedefs.h:65
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
INIT_FUNCTION VOID NTAPI KiInitializeMachineType(VOID)
Definition: kiinit.c:309
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:30
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:402
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
KSPIN_LOCK KiNmiCallbackListLock
Definition: bug.c:33
LIST_ENTRY KeBugcheckCallbackListHead
Definition: bug.c:21
static IUnknown Object
Definition: main.c:512
INIT_FUNCTION VOID NTAPI KiInitSystem(VOID)
Definition: krnlinit.c:71
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
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:803
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:372
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:1780
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:117
ULONG_PTR KiIdleSummary
Definition: thrdschd.c:25
DECLSPEC_NORETURN VOID FASTCALL KiCallbackReturn(IN PVOID Stack, IN NTSTATUS Status)
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
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:113
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
NTSTATUS(NTAPI * PGDI_BATCHFLUSH_ROUTINE)(VOID)
Definition: pstypes.h:546
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
Status
Definition: gdiplustypes.h:24
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
Definition: ketypes.h:675
ULONG_PTR SIZE_T
Definition: typedefs.h:78
ULONG KiMaximumDpcQueueDepth
Definition: dpc.c:19
INIT_FUNCTION LARGE_INTEGER NTAPI KiComputeReciprocal(IN LONG Divisor, OUT PUCHAR Shift)
Definition: krnlinit.c:123
* 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
INIT_FUNCTION VOID NTAPI KeInitExceptions(VOID)
Definition: except.c:59
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:75
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:22
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
BOOLEAN NTAPI KiHandleNmi(VOID)
Definition: bug.c:1244
_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
PKINTERRUPT_ROUTINE * FlatDispatch
Definition: ke.h:36
#define OUT
Definition: typedefs.h:39
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:63
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:109
_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:632
BOOLEAN ExCmosClockIsSane
Definition: init.c:89
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 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:23
BOOLEAN FASTCALL KeInvalidAccessAllowed(IN PVOID TrapInformation OPTIONAL)
Definition: exp.c:801
* PKAPC_STATE
Definition: ketypes.h:1273
LIST_ENTRY KiProcessListHead
Definition: procobj.c:18
VOID NTAPI KeFlushCurrentTb(VOID)
Definition: cpu.c:322
BOOLEAN NTAPI KeDisableThreadApcQueueing(IN PKTHREAD Thread)
PKNMI_HANDLER_CALLBACK KiNmiCallbackListHead
Definition: bug.c:32
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