#include "ntos.h"#include "stdio.h"#include "stdlib.h"#include "zwapi.h"Go to the source code of this file.
Classes | |
| struct | _KAPC_RECORD |
| struct | ADJUST_INTERRUPT_TIME_CONTEXT |
Defines | |
| #define | ALERT_INCREMENT 2 |
| #define | BALANCE_INCREMENT 10 |
| #define | RESUME_INCREMENT 0 |
| #define | TIMER_EXPIRE_INCREMENT 0 |
| #define | TIME_CRITICAL_PRIORITY_BOUND 14 |
| #define | NIL (PVOID)NULL |
| #define | ClearMember(Member, Set) Set = Set & (~(1 << (Member))) |
| #define | SetMember(Member, Set) Set = Set | (1 << (Member)) |
| #define | FindFirstSetLeftMember(Set, Member) |
| #define | KiLockApcQueue(Thread, OldIrql) *(OldIrql) = KeAcquireSpinLockRaiseToSynch(&(Thread)->ApcQueueLock) |
| #define | KiUnlockApcQueue(Thread, OldIrql) KeReleaseSpinLock(&(Thread)->ApcQueueLock, (OldIrql)) |
| #define | KiLockContextSwap(OldIrql) *(OldIrql) = KeAcquireSpinLockRaiseToSynch(&KiContextSwapLock) |
| #define | KiUnlockContextSwap(OldIrql) KeReleaseSpinLock(&KiContextSwapLock, (OldIrql)) |
| #define | KiQueuedSpinLockContext(n) (&(KeGetCurrentPrcb()->LockQueue[n])) |
| #define | KiBoostPriorityThread(Thread, Increment) |
| #define | KiInsertWaitList(_WaitMode, _Thread) |
| #define | IPI_APC 1 |
| #define | IPI_DPC 2 |
| #define | IPI_FREEZE 4 |
| #define | IPI_PACKET_READY 8 |
| #define | IPI_SYNCH_REQUEST 0x10 |
| #define | IPI_INSTRUMENT_COUNT(a, b) |
| #define | KiRemoveTreeTimer(Timer) |
| #define | KiRequestApcInterrupt(Processor) |
| #define | KiRequestDispatchInterrupt(Processor) |
| #define | KiWaitSatisfyAny(_Object_, _Thread_) |
| #define | KiWaitSatisfyMutant(_Object_, _Thread_) |
| #define | KiWaitSatisfyOther(_Object_) |
| #define | KiEnableAlignmentExceptions() |
| #define | KiDisableAlignmentExceptions() |
Typedefs | |
| typedef _KAPC_RECORD | KAPC_RECORD |
| typedef _KAPC_RECORD * | PKAPC_RECORD |
| typedef ULONG | KIPI_REQUEST |
| typedef ULONG_PTR(* | PKIPI_BROADCAST_WORKER )(IN ULONG_PTR Argument) |
| typedef * | PADJUST_INTERRUPT_TIME_CONTEXT |
Functions | |
| VOID FASTCALL | KiUnlockDispatcherDatabase (IN KIRQL OldIrql) |
| LOGICAL FASTCALL | KiTryToAcquireQueuedSpinLock (IN PKSPIN_LOCK_QUEUE QueuedLock) |
| VOID | ExpInitializeExecutive (IN ULONG Number, IN PLOADER_PARAMETER_BLOCK LoaderBlock) |
| BOOLEAN | KiChannelInitialization (VOID) |
| VOID | KiRundownChannel (VOID) |
| ULONG_PTR | KiIpiGenericCall (IN PKIPI_BROADCAST_WORKER BroadcastFunction, IN ULONG_PTR Context) |
| VOID FASTCALL | KiIpiSend (IN KAFFINITY TargetProcessors, IN KIPI_REQUEST Request) |
| VOID | KiIpiSendPacket (IN KAFFINITY TargetProcessors, IN PKIPI_WORKER WorkerFunction, IN PVOID Parameter1, IN PVOID Parameter2, IN PVOID Parameter3) |
| BOOLEAN | KiIpiServiceRoutine (IN struct _KTRAP_FRAME *TrapFrame, IN struct _KEXCEPTION_FRAME *ExceptionFrame) |
| VOID FASTCALL | KiIpiSignalPacketDone (IN PKIPI_CONTEXT SignalDone) |
| VOID | KiIpiStallOnPacketTargets (KAFFINITY TargetSet) |
| VOID FASTCALL | KiActivateWaiterQueue (IN PRKQUEUE Queue) |
| BOOLEAN | KiAdjustInterruptTime (IN LONGLONG TimeDelta) |
| VOID | KiApcInterrupt (VOID) |
| NTSTATUS | KiCallUserMode (IN PVOID *OutputBuffer, IN PULONG OutputLength) |
| VOID | KiCalibrateTimeAdjustment (PADJUST_INTERRUPT_TIME_CONTEXT Adjust) |
| VOID | KiChainedDispatch (VOID) |
| LARGE_INTEGER | KiComputeReciprocal (IN LONG Divisor, OUT PCCHAR Shift) |
| ULONG | KiComputeTimerTableIndex (IN LARGE_INTEGER Interval, IN LARGE_INTEGER CurrentCount, IN PRKTIMER Timer) |
| PLARGE_INTEGER FASTCALL | KiComputeWaitInterval (IN PLARGE_INTEGER OriginalTime, IN PLARGE_INTEGER DueTime, IN OUT PLARGE_INTEGER NewTime) |
| NTSTATUS | KiContinue (IN PCONTEXT ContextRecord, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame) |
| VOID | KiDeliverApc (IN KPROCESSOR_MODE PreviousMode, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame) |
| BOOLEAN | KiDisableInterrupts (VOID) |
| VOID | KiRestoreInterrupts (IN BOOLEAN Enable) |
| VOID | KiDispatchException (IN PEXCEPTION_RECORD ExceptionRecord, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN KPROCESSOR_MODE PreviousMode, IN BOOLEAN FirstChance) |
| KCONTINUE_STATUS | KiSetDebugProcessor (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN KPROCESSOR_MODE PreviousMode) |
| ULONG | KiCopyInformation (IN OUT PEXCEPTION_RECORD ExceptionRecord1, IN PEXCEPTION_RECORD ExceptionRecord2) |
| VOID | KiDispatchInterrupt (VOID) |
| PKTHREAD FASTCALL | KiFindReadyThread (IN ULONG Processor, KPRIORITY LowPriority) |
| VOID | KiFloatingDispatch (VOID) |
| VOID FASTCALL | KiFlushSingleTb (IN BOOLEAN Invalid, IN PVOID Virtual) |
| VOID | KiFlushMultipleTb (IN BOOLEAN Invalid, IN PVOID *Virtual, IN ULONG Count) |
| PULONG | KiGetUserModeStackAddress (VOID) |
| VOID | KiInitializeContextThread (IN PKTHREAD Thread, IN PKSYSTEM_ROUTINE SystemRoutine, IN PKSTART_ROUTINE StartRoutine OPTIONAL, IN PVOID StartContext OPTIONAL, IN PCONTEXT ContextFrame OPTIONAL) |
| VOID | KiInitializeKernel (IN PKPROCESS Process, IN PKTHREAD Thread, IN PVOID IdleStack, IN PKPRCB Prcb, IN CCHAR Number, IN PLOADER_PARAMETER_BLOCK LoaderBlock) |
| VOID | KiInitSystem (VOID) |
| BOOLEAN | KiInitMachineDependent (VOID) |
| VOID | KiInitializeUserApc (IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN PKNORMAL_ROUTINE NormalRoutine, IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2) |
| LONG FASTCALL | KiInsertQueue (IN PRKQUEUE Queue, IN PLIST_ENTRY Entry, IN BOOLEAN Head) |
| BOOLEAN FASTCALL | KiInsertQueueApc (IN PKAPC Apc, IN KPRIORITY Increment) |
| LOGICAL FASTCALL | KiInsertTreeTimer (IN PRKTIMER Timer, IN LARGE_INTEGER Interval) |
| VOID | KiInterruptDispatch (VOID) |
| VOID | KiInterruptDispatchRaise (IN PKINTERRUPT Interrupt) |
| VOID | KiInterruptDispatchSame (IN PKINTERRUPT Interrupt) |
| KIRQL | KiLockDeviceQueue (IN PKDEVICE_QUEUE DeviceQueue) |
| VOID | KiPassiveRelease (VOID) |
| NTSTATUS | KiRaiseException (IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT ContextRecord, IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN BOOLEAN FirstChance) |
| VOID FASTCALL | KiReadyThread (IN PRKTHREAD Thread) |
| LOGICAL FASTCALL | KiReinsertTreeTimer (IN PRKTIMER Timer, IN ULARGE_INTEGER DueTime) |
| PRKTHREAD FASTCALL | KiSelectNextThread (IN PRKTHREAD Thread) |
| VOID | KiSetSystemTime (IN PLARGE_INTEGER NewTime, OUT PLARGE_INTEGER OldTime) |
| VOID | KiSuspendNop (IN struct _KAPC *Apc, IN OUT PKNORMAL_ROUTINE *NormalRoutine, IN OUT PVOID *NormalContext, IN OUT PVOID *SystemArgument1, IN OUT PVOID *SystemArgument2) |
| VOID | KiSuspendThread (IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2) |
| BOOLEAN | KiSwapProcess (IN PKPROCESS NewProcess, IN PKPROCESS OldProcess) |
| LONG_PTR FASTCALL | KiSwapThread (VOID) |
| VOID | KiThreadStartup (IN PVOID StartContext) |
| VOID | KiTimerExpiration (IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2) |
| VOID FASTCALL | KiTimerListExpire (IN PLIST_ENTRY ExpiredListHead, IN KIRQL OldIrql) |
| VOID | KiUnexpectedInterrupt (VOID) |
| VOID | KiUnlockDeviceQueue (IN PKDEVICE_QUEUE DeviceQueue, IN KIRQL OldIrql) |
| VOID FASTCALL | KiUnwaitThread (IN PRKTHREAD Thread, IN LONG_PTR WaitStatus, IN KPRIORITY Increment) |
| VOID | KiUserApcDispatcher (IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2, IN PKNORMAL_ROUTINE NormalRoutine) |
| VOID | KiUserExceptionDispatcher (IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT ContextFrame) |
| VOID FASTCALL | KiWaitSatisfyAll (IN PRKWAIT_BLOCK WaitBlock) |
| VOID FASTCALL | KiWaitTest (IN PVOID Object, IN KPRIORITY Increment) |
| VOID | KiFreezeTargetExecution (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame) |
| VOID | KiPollFreezeExecution (VOID) |
| VOID | KiSaveProcessorState (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame) |
| VOID | KiSaveProcessorControlState (IN PKPROCESSOR_STATE ProcessorState) |
| VOID | KiRestoreProcessorState (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame) |
| VOID | KiRestoreProcessorControlState (IN PKPROCESSOR_STATE ProcessorState) |
| BOOLEAN | KiTryToAcquireSpinLock (IN PKSPIN_LOCK SpinLock) |
Variables | |
| PRKTHREAD | KiQuantumEnd (VOID) |
| ULONG | KiDmaIoCoherency |
| ULONG | KiMaximumDpcQueueDepth |
| ULONG | KiMinimumDpcRate |
| ULONG | KiAdjustDpcThreshold |
| KSPIN_LOCK | KiContextSwapLock |
| PKDEBUG_ROUTINE | KiDebugRoutine |
| PKDEBUG_SWITCH_ROUTINE | KiDebugSwitchRoutine |
| KSPIN_LOCK | KiDispatcherLock |
| LIST_ENTRY | KiDispatcherReadyListHead [MAXIMUM_PRIORITY] |
| CCHAR | KiFindFirstSetLeft [256] |
| CALL_PERFORMANCE_DATA | KiFlushSingleCallData |
| ULONG_PTR | KiHardwareTrigger |
| KAFFINITY | KiIdleSummary |
| UCHAR | KiFindLeftNibbleBitTable [] |
| KEVENT | KiSwapEvent |
| LIST_ENTRY | KiProcessInSwapListHead |
| LIST_ENTRY | KiProcessOutSwapListHead |
| LIST_ENTRY | KiStackInSwapListHead |
| LIST_ENTRY | KiProfileSourceListHead |
| BOOLEAN | KiProfileAlignmentFixup |
| ULONG | KiProfileAlignmentFixupInterval |
| ULONG | KiProfileAlignmentFixupCount |
| ULONG | KiProfileInterval |
| LIST_ENTRY | KiProfileListHead |
| KSPIN_LOCK | KiProfileLock |
| ULONG | KiReadySummary |
| UCHAR | KiArgumentTable [] |
| ULONG | KiServiceLimit |
| ULONG_PTR | KiServiceTable [] |
| CALL_PERFORMANCE_DATA | KiSetEventCallData |
| ULONG | KiTickOffset |
| LARGE_INTEGER | KiTimeIncrementReciprocal |
| CCHAR | KiTimeIncrementShiftCount |
| LIST_ENTRY | KiTimerTableListHead [TIMER_TABLE_SIZE] |
| KAFFINITY | KiTimeProcessor |
| KDPC | KiTimerExpireDpc |
| KSPIN_LOCK | KiFreezeExecutionLock |
| BOOLEAN | KiSlavesStartExecution |
| PSWAP_CONTEXT_NOTIFY_ROUTINE | KiSwapContextNotifyRoutine |
| PTHREAD_SELECT_NOTIFY_ROUTINE | KiThreadSelectNotifyRoutine |
| PTIME_UPDATE_NOTIFY_ROUTINE | KiTimeUpdateNotifyRoutine |
| LIST_ENTRY | KiWaitInListHead |
| LIST_ENTRY | KiWaitOutListHead |
| CALL_PERFORMANCE_DATA | KiWaitSingleCallData |
| ULONG | KiEnableTimerWatchdog |
| KSPIN_LOCK | KiFreezeLockBackup |
| ULONG | KiFreezeFlag |
| volatile ULONG | KiSuspendState |
|
|
Definition at line 35 of file ki.h. Referenced by KeAlertResumeThread(), and KeAlertThread(). |
|
|
Definition at line 36 of file ki.h. Referenced by KeDetachProcess(), KeTerminateThread(), KeUnstackDetachProcess(), KiAttachProcess(), and KiReadyThread(). |
|
|
Definition at line 58 of file ki.h. Referenced by KeFreezeExecution(), KeI386SetGdtSelector(), KeSetAffinityThread(), KeThawExecution(), KiFindReadyThread(), KiFlushForwardProgressTbBuffer(), KiInvalidateForwardProgressTbBuffer(), KiReadyThread(), KiScanReadyQueues(), and KiSetPriorityThread(). |
|
|
Value:
Definition at line 68 of file ki.h. Referenced by KiFindReadyThread(), and KiReadyThread(). |
|
|
Definition at line 279 of file ki.h. Referenced by KiIpiProcessRequests(), and main(). |
|
|
Definition at line 280 of file ki.h. Referenced by KeInsertQueueDpc(), KiIpiProcessRequests(), KiReadyThread(), and main(). |
|
|
Definition at line 281 of file ki.h. Referenced by KeBugCheckEx(), KeFreezeExecution(), KiIpiServiceRoutine(), KiPollFreezeExecution(), and main(). |
|
|
Definition at line 303 of file ki.h. Referenced by KeFlushEntireTb(), KeFlushMultipleTb(), KeFlushSingleTb(), KeSweepDcache(), KeSweepIcache(), KiFlushEntireTbTarget(), KiFlushIoBuffersTarget(), KiFlushMultipleTbTarget(), KiFlushSingleTbSynchronous(), KiFlushSingleTbTarget(), KiSweepDcacheTarget(), and KiSweepIcacheTarget(). |
|
|
Definition at line 282 of file ki.h. Referenced by main(). |
|
|
|
|
|
Value:
Definition at line 179 of file ki.h. Referenced by Ke386VdmInsertQueueApc(), and KeBoostPriorityThread(). |
|
|
Definition at line 1095 of file ki.h. Referenced by KeStopProfile(), KiInitializeKernel(), and KiStopProfileInterrupt(). |
|
|
Definition at line 1094 of file ki.h. Referenced by KeStartProfile(), and KiStartProfileInterrupt(). |
|
|
Value:
Definition at line 225 of file ki.h. Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeWaitForMultipleObjects(), and KeWaitForSingleObject(). |
|
|
Definition at line 94 of file ki.h. Referenced by KiDeliverApc(). |
|
|
|
Definition at line 149 of file ki.h. Referenced by KiInitializeKernel(). |
|
|
Value:
Definition at line 755 of file ki.h. Referenced by KeCancelTimer(), KeSetSystemTime(), KeSetTimerEx(), KiInsertQueue(), KiInsertTimerTable(), KiTimerListExpire(), and KiUnwaitThread(). |
|
|
Value:
Definition at line 767 of file ki.h. Referenced by KiInsertQueueApc(). |
|
|
Value:
Definition at line 782 of file ki.h. Referenced by KeSetAffinityThread(), KiReadyThread(), and KiSetPriorityThread(). |
|
|
Definition at line 101 of file ki.h. Referenced by KiDeliverApc(). |
|
|
|
Value:
Definition at line 913 of file ki.h. Referenced by KiWaitSatisfyAll(), and KiWaitTest(). |
|
|
Value:
Definition at line 960 of file ki.h. Referenced by KeWaitForMultipleObjects(), and KeWaitForSingleObject(). |
|
|
Value:
Definition at line 997 of file ki.h. Referenced by KeWaitForMultipleObjects(), and KeWaitForSingleObject(). |
|
|
Definition at line 50 of file ki.h. Referenced by KeInitializeApc(), KiInitializeKernel(), and KiInitSystem(). |
|
|
Definition at line 37 of file ki.h. Referenced by KeAlertResumeThread(), KeForceResumeThread(), KeFreezeAllThreads(), KeResumeThread(), KeSuspendThread(), and KeThawAllThreads(). |
|
|
Definition at line 65 of file ki.h. Referenced by KiInitializeKernel(), KiReadyThread(), KiSelectNextThread(), KiSetPriorityThread(), main(), and NtYieldExecution(). |
|
|
Definition at line 44 of file ki.h. Referenced by KiAdjustQuantumThread(), and KiUnwaitThread(). |
|
|
Definition at line 38 of file ki.h. Referenced by KeSetTimerEx(), and KiTimerListExpire(). |
|
|
Referenced by KiInitializeUserApc(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 293 of file ki.h. Referenced by KiAdjustInterruptTime(), KiInitMachineDependent(), KiIpiGenericCall(), KiIpiGenericCallTarget(), KiSyncMC_Drain(), and KiSyncPrefetchVisible(). |
|
||||||||||||
|
Referenced by KiInitializeKernel(). |
|
|
Definition at line 649 of file queueobj.c. References KiUnwaitThread(), NULL, and _KWAIT_BLOCK::Thread. Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeTerminateThread(), KeWaitForMultipleObjects(), and KeWaitForSingleObject().
|
|
|
Definition at line 544 of file ke/miscc.c. References ADJUST_INTERRUPT_TIME_CONTEXT::Adjustment, ADJUST_INTERRUPT_TIME_CONTEXT::Barrier, FALSE, ADJUST_INTERRUPT_TIME_CONTEXT::HalNumber, KeNumberProcessors, KiCalibrateTimeAdjustment(), KiIpiGenericCall(), ADJUST_INTERRUPT_TIME_CONTEXT::KiNumber, PKIPI_BROADCAST_WORKER, and TRUE. Referenced by KeSetSystemTime(), and KeStartAllProcessors().
|
|
|
Referenced by KiInitializeKernel(). |
|
|
Definition at line 592 of file ke/miscc.c. References HalCalibratePerformanceCounter(), KeInsertQueueDpc(), KeInterruptTimeBias, KeMaximumIncrement, KeQueryInterruptTime(), KeQueryPerformanceCounter(), KeRemoveQueueDpc(), KeTickCount, KeTimeIncrement, KiDisableInterrupts(), KiPollFreezeExecution(), KiRestoreInterrupts(), KiTickOffset, KiTimerExpireDpc, NULL, RtlExtendedLargeIntegerDivide(), and TIMER_TABLE_SIZE. Referenced by KiAdjustInterruptTime().
|
|
||||||||||||
|
Referenced by KdpGetVersion(), and KeUserModeCallback(). |
|
|
Referenced by KeConnectInterrupt(), KeDisconnectInterrupt(), and KiGetVectorInfo(). |
|
|
Referenced by KeInitSystem(). |
|
||||||||||||
|
Definition at line 237 of file kiinit.c. Referenced by KiInitializeKernel().
|
|
||||||||||||||||
|
Referenced by KiInsertTimerTable(). |
|
||||||||||||||||
|
Definition at line 1175 of file wait.c. Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeWaitForMultipleObjects(), and KeWaitForSingleObject().
|
|
||||||||||||||||
|
Definition at line 99 of file raisexcp.c. References APC_LEVEL, EXCEPTION_EXECUTE_HANDLER, FALSE, KeContextToKframes(), KeLowerIrql(), KeRaiseIrql(), KernelMode, KiContinuePreviousModeUser(), KPROCESSOR_MODE, NTSTATUS(), Status, and TRUE.
|
|
||||||||||||
|
Definition at line 984 of file alpha/exceptn.c. References EXCEPTION_EXECUTE_HANDLER. Referenced by Ki386CheckDelayedNpxTrap(), KiDispatchException(), KiEmulateByteWord(), KiEmulateDcbz(), KiEmulateFloating(), KiEmulateReference(), and KiInitializeUserApc().
|
|
||||||||||||||||
|
Definition at line 30 of file apcsup.c. References APC_LEVEL, _KAPC_STATE::ApcListHead, _KTHREAD::ApcState, FALSE, _KAPC::Inserted, KeBugCheckEx(), KeGetCurrentThread, KeLowerIrql(), KeRaiseIrql(), _KTHREAD::KernelApcDisable, _KAPC_STATE::KernelApcInProgress, _KAPC_STATE::KernelApcPending, KernelMode, _KAPC::KernelRoutine, KeTestAlertThread(), KiInitializeUserApc(), KiLockApcQueue, KiUnlockApcQueue, _KAPC::NormalContext, _KAPC::NormalRoutine, NULL, PKKERNEL_ROUTINE, PKNORMAL_ROUTINE, _KAPC::SystemArgument1, _KAPC::SystemArgument2, TRUE, _KAPC_STATE::UserApcPending, and UserMode. Referenced by KiDispatchSoftwareInterrupt().
|
|
|
||||||||||||||||||||||||
|
Definition at line 412 of file alpha/exceptn.c. References CONTEXT_FULL, DATA_BUS_ERROR, DbgkForwardException(), DbgPrint, DIVIDE_BREAKPOINT, FALSE, KDDEBUG_BREAKPOINT, KdIsThisAKdTrap(), KeBugCheckEx(), KeContextFromKframes(), KeContextToKframes(), KeGetCurrentPrcb, KeGetCurrentThread, KERNEL_BREAKPOINT_INSTRUCTION, KernelMode, KeUserExceptionDispatcher, KiCopyInformation(), KiDebugRoutine, KiEmulateByteWord(), KiEmulateDcbz(), KiEmulateReference(), KiEnableAlignmentFaultExceptions, KiFloatingException(), KiMachineCheck(), KMODE_EXCEPTION_NOT_HANDLED, NULL, ProbeForWrite(), PsGetCurrentProcess, RtlDispatchException(), TRUE, UDIVIDE_BREAKPOINT, and UserMode. Referenced by Ki386CheckDelayedNpxTrap(), KiInitializeUserApc(), and KiRaiseException().
|
|
|
Referenced by KiDispatchSoftwareInterrupt(), and KiInitializeKernel(). |
|
||||||||||||
|
|
|
|
Referenced by KeConnectInterrupt(), KeDisconnectInterrupt(), and KiGetVectorInfo(). |
|
||||||||||||||||
|
Referenced by KeFlushMultipleTb(), and KiFlushMultipleTbTarget(). |
|
||||||||||||
|
||||||||||||
|
Definition at line 220 of file ke/debug.c. References ContinueError, ContinueNextProcessor, FALSE, FREEZE_ACTIVE, FrozenState, HIGH_LEVEL, KCONTINUE_STATUS, KeFlushCurrentTb(), KeGetCurrentPrcb, KeLowerIrql(), KeRaiseIrql(), KiDebugSwitchRoutine, KiDisableInterrupts(), KiFreezeOwner, KiRestoreInterrupts(), KiRestoreProcessorState(), KiSaveProcessorState(), NULL, RUNNING, Status, TARGET_FROZEN, and TRUE. Referenced by KiIpiServiceRoutine(), and KiPollFreezeExecution().
|
|
|
Referenced by KeUserModeCallback(). |
|
||||||||||||||||||||||||
|
Definition at line 71 of file i386/thredini.c. References Context2, CONTEXT_CONTROL, CONTEXT_FLOATING_POINT, FALSE, KeContextToKframes(), KeI386FxsrPresent, KeI386NpxPresent, KeI386XMMIPresent, KernelMode, KiThreadStartup(), NULL, PASSIVE_LEVEL, TRUE, and UserMode.
|
|
||||||||||||||||||||||||||||
|
Definition at line 65 of file alpha/initkr.c. References APC_LEVEL, _BOOT_STATUS::BootFinished, _RESTART_BLOCK::BootStatus, CcMasterSpinLock, CcVacbSpinLock, DBG_STATUS_CONTROL_C, DbgPrint, DISPATCH_LEVEL, DMA_READ_DCACHE_INVALIDATE, DMA_WRITE_DCACHE_SNOOP, EXCEPTION_EXECUTE_HANDLER, ExpInitializeExecutive(), FALSE, HalInitializeProcessor(), HIGH_LEVEL, Index, KdInitSystem(), KdPollBreakIn(), KeActiveProcessors, KeBugCheck(), KeBugCheckEx(), KeFeatureBits, KeFlushCurrentTb(), KeInitializeDpc(), KeInitializeProcess(), KeInitializeSpinLock(), KeInitializeThread(), KeLoaderBlock, KeMaximumIncrement, KeNumberProcessors, KeProcessorArchitecture, KeProcessorLevel, KeProcessorRevision, KeRaiseIrql(), KeSetPriorityThread(), KiAdjustDpcThreshold, KiApcInterrupt(), KiComputeReciprocal(), KiContextSwapLock, KiDisableAlignmentExceptions, KiDispatcherLock, KiDispatchInterrupt(), KiDmaIoCoherency, KiGetFeatureBits(), KiIdleSummary, KiInitExceptionFilter(), KiInitSystem(), KiMaximumDpcQueueDepth, KiMinimumDpcRate, KiPassiveRelease(), KiPhase0SyncIoMap(), KiProcessorBlock, KiQuantumEnd, KiTimeIncrementReciprocal, KiTimeIncrementShiftCount, KiUnexpectedInterrupt(), LockQueueContextSwapLock, LockQueueDispatcherLock, LockQueueMasterLock, LockQueuePfnLock, LockQueueSystemSpaceLock, LockQueueVacbLock, MAXIMUM_PROCESSORS, MmPfnLock, MmSystemSpaceLock, NIL, NULL, PAGE_SHIFT, PAGE_SIZE, PASSIVE_LEVEL, PDI_SHIFT, PKDEFERRED_ROUTINE, PKSTART_ROUTINE, PKSYSTEM_ROUTINE, PoInitializePrcb(), PRCB_MAJOR_VERSION, PRCB_MINOR_VERSION, Running, SetMember, TRUE, and USHORT.
|
|
||||||||||||||||||||||||||||
|
Definition at line 33 of file alpha/apcuser.c. References CONTEXT_FULL, KeContextFromKframes(), KeUserApcDispatcher, KiCopyInformation(), KiDispatchException(), ProbeForWrite(), STK_MIN_FRAME, TRUE, and UserMode. Referenced by KiDeliverApc().
|
|
|
Referenced by KeInitSystem(). |
|
|
Definition at line 96 of file kiinit.c. References _KSERVICE_TABLE_DESCRIPTOR::Base, _KSERVICE_TABLE_DESCRIPTOR::Count, ExInitializeCallData(), FALSE, Index, KeBugCheckCallbackListHead, KeBugCheckCallbackLock, KeInitializeDpc(), KeInitializeEvent, KeInitializeSpinLock(), KeServiceDescriptorTable, KeServiceDescriptorTableShadow, KiArgumentTable, KiDispatcherReadyListHead, KiFlushSingleCallData, KiProcessInSwapListHead, KiProcessOutSwapListHead, KiProfileListHead, KiProfileLock, KiProfileSourceListHead, KiServiceLimit, KiServiceTable, KiSetEventCallData, KiStackInSwapListHead, KiSwapEvent, KiTimerExpiration(), KiTimerExpireDpc, KiTimerTableListHead, KiWaitInListHead, KiWaitOutListHead, KiWaitSingleCallData, _KSERVICE_TABLE_DESCRIPTOR::Limit, NIL, NULL, _KSERVICE_TABLE_DESCRIPTOR::Number, NUMBER_SERVICE_TABLES, PKDEFERRED_ROUTINE, and TIMER_TABLE_SIZE. Referenced by KiInitializeKernel().
|
|
||||||||||||||||
|
Definition at line 710 of file queueobj.c. References ASSERT_QUEUE, FALSE, _KTIMER::Header, _DISPATCHER_HEADER::Inserted, KeGetCurrentThread, KiReadyThread(), KiRemoveTreeTimer, _KTHREAD::Queue, _KWAIT_BLOCK::Thread, _KTHREAD::Timer, TRUE, _KTHREAD::WaitListEntry, _KTHREAD::WaitReason, _KTHREAD::WaitStatus, and WrQueue. Referenced by KeInsertHeadQueue(), KeInsertQueue(), and KeTerminateThread().
|
|
||||||||||||
|
Definition at line 223 of file apcsup.c. References _KTHREAD::Alertable, _KAPC_STATE::ApcListHead, _KTHREAD::ApcQueueLock, _KTHREAD::ApcState, _KTHREAD::ApcStateIndex, _KTHREAD::ApcStatePointer, FALSE, Increment, _KTHREAD::KernelApcDisable, _KAPC_STATE::KernelApcInProgress, _KAPC_STATE::KernelApcPending, KernelMode, KiRequestApcInterrupt, KiUnwaitThread(), KPROCESSOR_MODE, _KTHREAD::NextProcessor, _KAPC::NormalRoutine, NULL, PsExitSpecialApc(), Running, _KTHREAD::State, TRUE, _KAPC_STATE::UserApcPending, UserMode, Waiting, _KTHREAD::WaitIrql, and _KTHREAD::WaitMode. Referenced by Ke386VdmInsertQueueApc(), KeFreezeAllThreads(), KeInsertQueueApc(), and KeSuspendThread().
|
|
||||||||||||
|
Definition at line 42 of file timersup.c. References FALSE, KiInsertTimerTable(), and TRUE. Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeSetTimerEx(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), and KiTimerListExpire().
|
|
|
Referenced by KiGetVectorInfo(). |
|
|
Referenced by KeConnectInterrupt(), and KeDisconnectInterrupt(). |
|
|
Referenced by KeConnectInterrupt(), and KeDisconnectInterrupt(). |
|
||||||||||||
|
Definition at line 40 of file xipi.c. References KeActiveProcessors, KeGetCurrentPrcb, KeLowerIrql(), KeRaiseIrql(), KiIpiGenericCallTarget(), KiIpiSendPacket(), KiIpiStallOnPacketTargets(), max, NULL, PKIPI_BROADCAST_WORKER, and Status. Referenced by KeI386VdmInitialize(), KeSetIntervalProfile(), KiAdjustInterruptTime(), KiInitMachineDependent(), KiSyncMC_Drain(), and KiSyncPrefetchVisible().
|
|
||||||||||||
|
Definition at line 253 of file mpipi.c. References HalRequestIpi(), and KiProcessorBlock. Referenced by KeBugCheckEx(), KeFreezeExecution(), KeInsertQueueDpc(), and KiReadyThread().
|
|
||||||||||||||||||||||||
|
Definition at line 319 of file mpipi.c. References HalRequestIpi(), KeGetCurrentPrcb, and KiProcessorBlock. Referenced by Ke386IoSetAccessProcess(), Ke386SetIoAccessMap(), Ke386SetLdtProcess(), Ke386SetVdmInterruptHandler(), KeChangeColorPage(), KeDetachSessionSpace(), KeFlushEntireTb(), KeFlushIoBuffers(), KeFlushMultipleTb(), KeFlushMultipleTb64(), KeFlushSingleTb(), KeFlushSingleTb64(), KeStartProfile(), KeStopProfile(), KeSweepCacheRange(), KeSweepDcache(), KeSweepDcacheRange(), KeSweepIcache(), KeSweepIcacheRange(), KeSynchronizeMemoryAccess(), KiGetNewRid(), KiIpiGenericCall(), and KiSyncNewRegionId().
|
|
||||||||||||
|
|
|
|
|
Definition at line 182 of file xipi.c. References KeActiveProcessors, and KeGetCurrentPrcb. Referenced by Ke386IoSetAccessProcess(), Ke386SetDescriptorProcess(), Ke386SetIoAccessMap(), Ke386SetLdtProcess(), Ke386SetVdmInterruptHandler(), KeChangeColorPage(), KeFlushEntireTb(), KeFlushIoBuffers(), KeFlushMultipleTb(), KeFlushMultipleTb64(), KeFlushSingleTb(), KeFlushSingleTb64(), KeInvalidateAllCaches(), KeStartProfile(), KeStopProfile(), KeSweepCacheRange(), KeSweepDcache(), KeSweepDcacheRange(), KeSweepIcache(), KeSweepIcacheRange(), KeSynchronizeMemoryAccess(), KiCompleteEffectiveRangeChange(), KiFlushSingleTbSynchronous(), KiGetNewRid(), KiInitializePAT(), KiIpiGenericCall(), and KiSyncNewRegionId().
|
|
|
|
|
|
Referenced by KiInitializeKernel(). |
|
|
Definition at line 538 of file ke/debug.c. References IPI_FREEZE, KeGetCurrentPrcb, KiFreezeTargetExecution(), and NULL. Referenced by KiCalibrateTimeAdjustment().
|
|
||||||||||||||||||||||||
|
Definition at line 208 of file raisexcp.c. References EXCEPTION_EXECUTE_HANDLER, KeContextToKframes(), KernelMode, KiDispatchException(), KPROCESSOR_MODE, and ProbeForRead.
|
|
|
Definition at line 270 of file thredsup.c. References BALANCE_INCREMENT, ClearMember, FALSE, FASTCALL, FindFirstSetLeftMember, _KEVENT::Header, IPI_DPC, KeGetCurrentPrcb, KiDispatcherReadyListHead, KiIdleSummary, KiIncrementSwitchCounter, KiIpiSend(), KiProcessInSwapListHead, KiProcessorBlock, KiReadySummary, KiRequestDispatchInterrupt, KiStackInSwapListHead, KiSwapEvent, KiWaitTest(), NULL, PoSleepingSummary, _KTHREAD::Preempted, _KTHREAD::Priority, ProcessInMemory, ProcessInTransition, ProcessOutOfMemory, Ready, _KPROCESS::ReadyListHead, SetMember, _DISPATCHER_HEADER::SignalState, _KPROCESS::StackCount, Standby, _KPROCESS::State, _KPROCESS::SwapListEntry, Transition, TRUE, and _DISPATCHER_HEADER::WaitListHead. Referenced by KeDelayExecutionThread(), KeReadyThread(), KeSetAffinityThread(), KiAttachProcess(), KiInsertQueue(), KiInSwapKernelStacks(), KiInSwapProcesses(), KiOutSwapProcesses(), KiScanReadyQueues(), KiSetPriorityThread(), KiUnwaitThread(), NtReplyWaitSendChannel(), and NtSendWaitReplyChannel().
|
|
||||||||||||
|
Definition at line 121 of file timersup.c. References FALSE, KiInsertTimerTable(), and TRUE. Referenced by KeSetSystemTime().
|
|
|
|
|
|
||||||||||||
|
Definition at line 31 of file alpha/ipi.c. References CONTEXT_FULL, KeContextToKframes(), KeGetCurrentPrcb, KernelMode, and KiRestoreProcessorControlState(). Referenced by KdpTrap(), and KiFreezeTargetExecution().
|
|
|
Referenced by KeRundownThread(). |
|
|
Definition at line 124 of file xxmpipi.c.
|
|
||||||||||||
|
Definition at line 81 of file alpha/ipi.c. References CONTEXT_FULL, KeContextFromKframes(), KeGetCurrentPrcb, and KiSaveProcessorControlState(). Referenced by KdpTrap(), and KiFreezeTargetExecution().
|
|
|
Definition at line 479 of file thredsup.c. References KiFindReadyThread(), KiIdleSummary, KiIncrementSwitchCounter, KiProcessorBlock, _KTHREAD::NextProcessor, NULL, and SetMember. Referenced by KeRevertToUserAffinityThread(), KeSetAffinityThread(), and KeSetSystemAffinityThread().
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
Referenced by KeInitializeThread(). |
|
||||||||||||||||
|
Definition at line 770 of file thredsup.c. References _KAPC_STATE::ApcListHead, _KTHREAD::ApcState, FALSE, KeGetCurrentThread, KernelMode, _KAPC::KernelRoutine, KeWaitForSingleObject(), NULL, PsExitSpecialApc(), Suspended, _KTHREAD::SuspendSemaphore, _KAPC_STATE::UserApcPending, and UserMode. Referenced by KeInitializeThread().
|
|
||||||||||||
|
Referenced by KeDetachProcess(), KeUnstackDetachProcess(), and KiAttachProcess(). |
|
|
Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeTerminateThread(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), KiAttachProcess(), and NtYieldExecution(). |
|
|
Referenced by KiInitializeContextThread(). |
|
||||||||||||||||||||
|
Definition at line 217 of file dpcsup.c. References _KTIMER::DueTime, Index, KeNumberProcessors, KiLockDispatcherDatabase, KiTimerListExpire(), KiTimerTableListHead, TIMER_TABLE_SIZE, and _KTIMER::TimerListEntry. Referenced by KiInitSystem().
|
|
||||||||||||
|
Definition at line 333 of file dpcsup.c. References _DPC_ENTRY::Context, Count, _KDPC::DeferredContext, _KDPC::DeferredRoutine, DISPATCH_LEVEL, _DPC_ENTRY::Dpc, _KTIMER::Dpc, FALSE, _KTIMER::Header, Index, KeGetCurrentPrcb, KeInsertQueueDpc(), KeLowerIrql(), KiInsertTreeTimer(), KiLockDispatcherDatabase, KiRemoveTreeTimer, KiUnlockDispatcherDatabase(), KiWaitTest(), MAXIMUM_DPC_LIST_SIZE, MAXIMUM_PROCESSORS, NULL, _KDPC::Number, _KTIMER::Period, _DPC_ENTRY::Routine, _DISPATCHER_HEADER::SignalState, TIMER_EXPIRE_INCREMENT, and _DISPATCHER_HEADER::WaitListHead. Referenced by KeSetSystemTime(), and KiTimerExpiration().
|
|
|
Referenced by KiInitializeKernel(). |
|
|
Referenced by KdEnterDebugger(), KdLogDbgPrint(), KdPollBreakIn(), and KeFreezeExecution(). |
|
|
Referenced by KiInitializeKernel(). |
|
||||||||||||
|
|
|
|
||||||||||||||||
|
Definition at line 31 of file waitsup.c. References _KPROCESS::BasePriority, _KQUEUE::CurrentCount, FALSE, _KTIMER::Header, Increment, _DISPATCHER_HEADER::Inserted, KiReadyThread(), KiRemoveTreeTimer, MEMORY_PRIORITY_FOREGROUND, _KWAIT_BLOCK::NextWaitBlock, NULL, PKQUEUE, PsPrioritySeperation, _KPROCESS::ThreadQuantum, TIME_CRITICAL_PRIORITY_BOUND, WAIT_QUANTUM_DECREMENT, and _KWAIT_BLOCK::WaitListEntry. Referenced by KeAlertResumeThread(), KeAlertThread(), KeSetEvent(), KeSetEventBoostPriority(), KiActivateWaiterQueue(), KiInsertQueueApc(), and KiWaitTest().
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 228 of file waitsup.c. References KiWaitSatisfyAny, _KWAIT_BLOCK::NextWaitBlock, _KWAIT_BLOCK::Object, _KWAIT_BLOCK::Thread, and _KWAIT_BLOCK::WaitKey. Referenced by KeWaitForMultipleObjects(), and KiWaitTest().
|
|
||||||||||||
|
Definition at line 277 of file waitsup.c. References Event(), _KMUTANT::Header, Increment, KiUnwaitThread(), KiWaitSatisfyAll(), KiWaitSatisfyAny, MutantObject, _KWAIT_BLOCK::NextWaitBlock, NTSTATUS(), _KWAIT_BLOCK::Object, _KMUTANT::OwnerThread, _DISPATCHER_HEADER::SignalState, _KWAIT_BLOCK::Thread, _DISPATCHER_HEADER::Type, _KWAIT_BLOCK::WaitKey, and _KWAIT_BLOCK::WaitType. Referenced by KeAlertResumeThread(), KeDetachProcess(), KeForceResumeThread(), KePulseEvent(), KeReleaseMutant(), KeReleaseSemaphore(), KeResumeThread(), KeRundownThread(), KeSetEvent(), KeSetProcess(), KeSetTimerEx(), KeTerminateThread(), KeThawAllThreads(), KeUnstackDetachProcess(), KiAttachProcess(), KiReadyThread(), and KiTimerListExpire().
|
|
|
|
|
|
Definition at line 1135 of file ki.h. Referenced by KiInitSystem(). |
|
|
Definition at line 1113 of file ki.h. Referenced by KiInitializeKernel(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1117 of file ki.h. Referenced by KeSetAffinityThread(), KiFindReadyThread(), KiInitSystem(), KiReadyThread(), KiScanReadyQueues(), KiSetPriorityThread(), and NtYieldExecution(). |
|
|
Definition at line 1109 of file ki.h. Referenced by KeFlushIoBuffers(), KeSetDmaIoCoherency(), and KiInitializeKernel(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1119 of file ki.h. Referenced by KeFlushSingleTb(), and KiInitSystem(). |
|
|
|
|
|
Definition at line 1234 of file ki.h. Referenced by KdEnterDebugger(), KeFreezeExecution(), and KeThawExecution(). |
|
|
|
|
|
|
|
|
Definition at line 1121 of file ki.h. Referenced by KiInitializeKernel(), KiReadyThread(), and KiSelectNextThread(). |
|
|
|
|
|
|
|
|
Definition at line 1124 of file ki.h. Referenced by KeSwapProcessOrStack(), KiAttachProcess(), KiInitSystem(), KiInSwapProcesses(), KiOutSwapProcesses(), and KiReadyThread(). |
|
|
Definition at line 1125 of file ki.h. Referenced by KeDetachProcess(), KeSwapProcessOrStack(), KeTerminateThread(), KeUnstackDetachProcess(), KiInitSystem(), KiOutSwapKernelStacks(), and KiOutSwapProcesses(). |
|
|
Definition at line 1128 of file ki.h. Referenced by KeStartProfile(), KeStopProfile(), and KiEmulateReference(). |
|
|
Definition at line 1130 of file ki.h. Referenced by KiEmulateReference(). |
|
|
Definition at line 1129 of file ki.h. Referenced by KeQueryIntervalProfile(), KeSetIntervalProfile(), and KiEmulateReference(). |
|
|
Definition at line 1131 of file ki.h. Referenced by KeQueryIntervalProfile(), and KeSetIntervalProfile(). |
|
|
Definition at line 1132 of file ki.h. Referenced by KeProfileInterruptWithSource(), KeStartProfile(), and KiInitSystem(). |
|
|
|
|
|
Definition at line 1127 of file ki.h. Referenced by KeStartProfile(), KeStopProfile(), and KiInitSystem(). |
|
|
Referenced by KiInitializeKernel(). |
|
|
Definition at line 1134 of file ki.h. Referenced by KeSetAffinityThread(), KiFindReadyThread(), KiReadyThread(), KiScanReadyQueues(), KiSetPriorityThread(), and NtYieldExecution(). |
|
|
Definition at line 1136 of file ki.h. Referenced by KiInitSystem(). |
|
|
Definition at line 1137 of file ki.h. Referenced by KiInitSystem(). |
|
|
Definition at line 1138 of file ki.h. Referenced by KeSetEvent(), and KiInitSystem(). |
|
|
|
|
|
Definition at line 1126 of file ki.h. Referenced by KeSwapProcessOrStack(), KiInitSystem(), KiInSwapKernelStacks(), and KiReadyThread(). |
|
|
|
|
|
Definition at line 1147 of file ki.h. Referenced by KeSetSwapContextNotifyRoutine(). |
|
|
Definition at line 1123 of file ki.h. Referenced by KeBalanceSetManager(), KeDetachProcess(), KeSwapProcessOrStack(), KeTerminateThread(), KeUnstackDetachProcess(), KiAttachProcess(), KiInitSystem(), and KiReadyThread(). |
|
|
Definition at line 1148 of file ki.h. Referenced by KeSetThreadSelectNotifyRoutine(), and KiFindReadyThread(). |
|
|
Definition at line 1139 of file ki.h. Referenced by KeSetTimeIncrement(), KeUpdateSystemTime(), and KiCalibrateTimeAdjustment(). |
|
|
Definition at line 1140 of file ki.h. Referenced by KiInitializeKernel(). |
|
|
Definition at line 1141 of file ki.h. Referenced by KiInitializeKernel(). |
|
|
|
|
|
Definition at line 1144 of file ki.h. Referenced by KiCalibrateTimeAdjustment(), KiChkTimerExpireSysDpc(), and KiInitSystem(). |
|
|
Definition at line 1142 of file ki.h. Referenced by KeCheckForTimer(), KeSetSystemTime(), KiChkTimerExpireSysDpc(), KiInitSystem(), KiInsertTimerTable(), KiTimerExpiration(), and VerifierKeInitializeTimerEx(). |
|
|
Definition at line 1149 of file ki.h. Referenced by KeSetTimeUpdateNotifyRoutine(). |
|
|
Definition at line 1150 of file ki.h. Referenced by KiInitSystem(), and KiOutSwapKernelStacks(). |
|
|
Definition at line 1151 of file ki.h. Referenced by KiInitSystem(), and KiOutSwapKernelStacks(). |
|
|
Definition at line 1152 of file ki.h. Referenced by KeWaitForSingleObject(), and KiInitSystem(). |
1.3.7