ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Macros | |
#define | KeEnterGuardedRegionThread(_Thread) |
#define | KeEnterGuardedRegion() |
#define | KeLeaveGuardedRegionThread(_Thread) |
#define | KeLeaveGuardedRegion() |
#define | KeEnterCriticalRegionThread(_Thread) |
#define | KeEnterCriticalRegion() |
#define | KeLeaveCriticalRegionThread(_Thread) |
#define | KeLeaveCriticalRegion() |
#define | KiSatisfyMutantWait(Object, Thread) |
#define | KiSatisfyNonMutantWait(Object) |
#define | KiSatisfyObjectWait(Object, Thread) |
#define | KiAddThreadToWaitList(Thread, Swappable) |
#define | KxDelayThreadWait() |
#define | KxMultiThreadWait() |
#define | KxSingleThreadWait() |
#define | KxQueueThreadWait() |
#define KeEnterCriticalRegion | ( | ) |
#define KeEnterCriticalRegionThread | ( | _Thread | ) |
#define KeEnterGuardedRegion | ( | ) |
#define KeEnterGuardedRegionThread | ( | _Thread | ) |
#define KeLeaveCriticalRegion | ( | ) |
#define KeLeaveCriticalRegionThread | ( | _Thread | ) |
#define KeLeaveGuardedRegion | ( | ) |
#define KeLeaveGuardedRegionThread | ( | _Thread | ) |
#define KxDelayThreadWait | ( | ) |
FORCEINLINE VOID _KeAcquireGuardedMutex | ( | IN PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1587 of file ke_x.h.
Referenced by KeAcquireGuardedMutex().
FORCEINLINE VOID _KeAcquireGuardedMutexUnsafe | ( | IN OUT PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1522 of file ke_x.h.
Referenced by KeAcquireGuardedMutexUnsafe().
FORCEINLINE VOID _KeInitializeGuardedMutex | ( | OUT PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1509 of file ke_x.h.
Referenced by KeInitializeGuardedMutex().
FORCEINLINE VOID _KeReleaseGuardedMutex | ( | IN OUT PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1612 of file ke_x.h.
Referenced by KeReleaseGuardedMutex().
FORCEINLINE VOID _KeReleaseGuardedMutexUnsafe | ( | IN OUT PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1546 of file ke_x.h.
Referenced by KeReleaseGuardedMutexUnsafe().
FORCEINLINE BOOLEAN _KeTryToAcquireGuardedMutex | ( | IN OUT PKGUARDED_MUTEX | GuardedMutex | ) |
Definition at line 1655 of file ke_x.h.
Referenced by KeTryToAcquireGuardedMutex().
_Requires_lock_held_ | ( | Prcb-> | PrcbLock | ) | -> PrcbLock) FORCEINLINE VOID KxQueueReadyThread(IN PKTHREAD Thread, IN PKPRCB Prcb) |
Definition at line 1350 of file ke_x.h.
FORCEINLINE KPROCESSOR_MODE KeGetPreviousMode | ( | VOID | ) |
FORCEINLINE VOID KiAcquireApcLockAtSynchLevel | ( | IN PKTHREAD | Thread, |
IN PKLOCK_QUEUE_HANDLE | Handle | ||
) |
Definition at line 616 of file ke_x.h.
Referenced by KeFreezeAllThreads(), and KeThawAllThreads().
FORCEINLINE VOID KiAcquireApcLockRaiseToDpc | ( | IN PKTHREAD | Thread, |
IN PKLOCK_QUEUE_HANDLE | Handle | ||
) |
Definition at line 626 of file ke_x.h.
Referenced by KiDeliverApc().
FORCEINLINE VOID KiAcquireApcLockRaiseToSynch | ( | IN PKTHREAD | Thread, |
IN PKLOCK_QUEUE_HANDLE | Handle | ||
) |
Definition at line 607 of file ke_x.h.
Referenced by KeAlertResumeThread(), KeAlertThread(), KeAttachProcess(), KeDetachProcess(), KeFlushQueueApc(), KeForceResumeThread(), KeInsertQueueApc(), KeRemoveQueueApc(), KeResumeThread(), KeStackAttachProcess(), KeSuspendThread(), KeTestAlertThread(), KeUnstackDetachProcess(), and KeWaitForGate().
FORCEINLINE VOID KiAcquireDeviceQueueLock | ( | IN PKDEVICE_QUEUE | DeviceQueue, |
IN PKLOCK_QUEUE_HANDLE | DeviceLock | ||
) |
Definition at line 676 of file ke_x.h.
Referenced by KeInsertByKeyDeviceQueue(), KeInsertDeviceQueue(), KeRemoveByKeyDeviceQueue(), KeRemoveByKeyDeviceQueueIfBusy(), KeRemoveDeviceQueue(), and KeRemoveEntryDeviceQueue().
FORCEINLINE KIRQL KiAcquireDispatcherLock | ( | VOID | ) |
Definition at line 149 of file ke_x.h.
Referenced by ExpExpandResourceOwnerTable(), ExpWaitForResource(), KeBoostPriorityThread(), KeCancelTimer(), KeConnectInterrupt(), KeDisconnectInterrupt(), KeInitializeMutant(), KeInsertHeadQueue(), KeInsertQueue(), KePulseEvent(), KeReadyThread(), KeReleaseMutant(), KeReleaseSemaphore(), KeResetEvent(), KeRevertToUserAffinityThread(), KeRundownQueue(), KeRundownThread(), KeSetAffinityThread(), KeSetBasePriorityThread(), KeSetEvent(), KeSetEventBoostPriority(), KeSetIdealProcessorThread(), KeSetPriorityThread(), KeSetProcess(), KeSetSystemAffinityThread(), KeSetSystemTime(), KeSetTimerEx(), KiInsertQueueApc(), KiScanReadyQueues(), and KiTimerExpiration().
FORCEINLINE VOID KiAcquireDispatcherLockAtSynchLevel | ( | VOID | ) |
Definition at line 165 of file ke_x.h.
Referenced by KeAlertResumeThread(), KeAlertThread(), KeAttachProcess(), KeDelayExecutionThread(), KeDetachProcess(), KeForceResumeThread(), KeFreezeAllThreads(), KeRemoveQueue(), KeRemoveQueueApc(), KeResumeThread(), KeSetAffinityProcess(), KeSetPriorityAndQuantumProcess(), KeSignalGateBoostPriority(), KeStackAttachProcess(), KeStartThread(), KeSuspendThread(), KeTerminateThread(), KeThawAllThreads(), KeUnstackDetachProcess(), KeWaitForGate(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), and KiCompleteTimer().
FORCEINLINE VOID KiAcquireDispatcherObject | ( | IN DISPATCHER_HEADER * | Object | ) |
Definition at line 132 of file ke_x.h.
Referenced by KeSignalGateBoostPriority(), KeWaitForGate(), and KiInsertQueueApc().
FORCEINLINE VOID KiAcquireNmiListLock | ( | OUT PKIRQL | OldIrql | ) |
Definition at line 1682 of file ke_x.h.
Referenced by KeDeregisterNmiCallback(), and KeRegisterNmiCallback().
FORCEINLINE VOID KiAcquirePrcbLock | ( | IN PKPRCB | Prcb | ) |
Definition at line 220 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), KeRevertToUserAffinityThread(), KeSetSystemAffinityThread(), KiAdjustQuantumThread(), KiDeferredReadyThread(), KiDispatchInterrupt(), KiExitDispatcher(), KiInitializeKernel(), KiScanReadyQueues(), KiSetPriorityThread(), KiSwapThread(), KiSystemStartupBootStack(), and NtYieldExecution().
FORCEINLINE VOID KiAcquireProcessLockRaiseToSynch | ( | IN PKPROCESS | Process, |
IN PKLOCK_QUEUE_HANDLE | Handle | ||
) |
Definition at line 651 of file ke_x.h.
Referenced by KeFreezeAllThreads(), KeQueryRuntimeProcess(), KeQueryValuesProcess(), KeSetAffinityProcess(), KeSetPriorityAndQuantumProcess(), KeSetQuantumProcess(), KeStartThread(), KeTerminateThread(), KeThawAllThreads(), and MmSetExecuteOptions().
FORCEINLINE VOID KiAcquireThreadLock | ( | IN PKTHREAD | Thread | ) |
Definition at line 240 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), ExpBoostOwnerThread(), KeBoostPriorityThread(), KeQueryBasePriorityThread(), KeSetBasePriorityThread(), KeSetPriorityAndQuantumProcess(), KeSetPriorityThread(), KeWaitForGate(), KiAdjustQuantumThread(), KiDeferredReadyThread(), KiInsertQueueApc(), and NtYieldExecution().
FORCEINLINE PKSPIN_LOCK_QUEUE KiAcquireTimerLock | ( | IN ULONG | Hand | ) |
Definition at line 286 of file ke_x.h.
Referenced by KeSetSystemTime(), KiInsertTreeTimer(), KiTimerExpiration(), KxInsertTimer(), and KxRemoveTreeTimer().
FORCEINLINE NTSTATUS KiCheckAlertability | ( | IN PKTHREAD | Thread, |
IN BOOLEAN | Alertable, | ||
IN KPROCESSOR_MODE | WaitMode | ||
) |
Definition at line 841 of file ke_x.h.
Referenced by KeDelayExecutionThread(), KeWaitForMultipleObjects(), and KeWaitForSingleObject().
FORCEINLINE VOID KiCheckDeferredReadyList | ( | IN PKPRCB | Prcb | ) |
Definition at line 268 of file ke_x.h.
Referenced by KiExitDispatcher().
FORCEINLINE BOOLEAN KiCheckThreadStackSwap | ( | IN PKTHREAD | Thread, |
IN KPROCESSOR_MODE | WaitMode | ||
) |
FORCEINLINE BOOLEAN KiComputeDueTime | ( | IN PKTIMER | Timer, |
IN LARGE_INTEGER | DueTime, | ||
OUT PULONG | Hand | ||
) |
Definition at line 952 of file ke_x.h.
Referenced by KeSetTimerEx(), and KiInsertTreeTimer().
Definition at line 1472 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), KeSetBasePriorityThread(), KeSetEventBoostPriority(), KiAdjustQuantumThread(), KiDeferredReadyThread(), and NtYieldExecution().
FORCEINLINE ULONG KiComputeTimerTableIndex | ( | IN ULONGLONG | DueTime | ) |
Definition at line 881 of file ke_x.h.
Referenced by KeSetSystemTime(), KiComputeDueTime(), KiInsertTimerTable(), and KxSetTimerForThreadWait().
FORCEINLINE VOID KiInsertDeferredReadyList | ( | IN PKTHREAD | Thread | ) |
Definition at line 185 of file ke_x.h.
Referenced by KiInsertQueueApc(), KiReadyThread(), KiScanReadyQueues(), and KiSetPriorityThread().
FORCEINLINE PLARGE_INTEGER KiRecalculateDueTime | ( | IN PLARGE_INTEGER | OriginalDueTime, |
IN PLARGE_INTEGER | DueTime, | ||
IN OUT PLARGE_INTEGER | NewDueTime | ||
) |
Definition at line 785 of file ke_x.h.
Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeWaitForMultipleObjects(), and KeWaitForSingleObject().
FORCEINLINE VOID KiReleaseApcLock | ( | IN PKLOCK_QUEUE_HANDLE | Handle | ) |
Definition at line 635 of file ke_x.h.
Referenced by KeFlushQueueApc(), KeRemoveQueueApc(), KeSuspendThread(), KeTestAlertThread(), KeUnstackDetachProcess(), KeWaitForGate(), and KiDeliverApc().
FORCEINLINE VOID KiReleaseApcLockFromSynchLevel | ( | IN PKLOCK_QUEUE_HANDLE | Handle | ) |
Definition at line 643 of file ke_x.h.
Referenced by KeAlertResumeThread(), KeAlertThread(), KeDetachProcess(), KeForceResumeThread(), KeFreezeAllThreads(), KeInsertQueueApc(), KeResumeThread(), KeSuspendThread(), KeThawAllThreads(), KeUnstackDetachProcess(), KeWaitForGate(), and KiAttachProcess().
FORCEINLINE VOID KiReleaseDeviceQueueLock | ( | IN PKLOCK_QUEUE_HANDLE | DeviceLock | ) |
Definition at line 696 of file ke_x.h.
Referenced by KeInsertByKeyDeviceQueue(), KeInsertDeviceQueue(), KeRemoveByKeyDeviceQueue(), KeRemoveByKeyDeviceQueueIfBusy(), KeRemoveDeviceQueue(), and KeRemoveEntryDeviceQueue().
FORCEINLINE VOID KiReleaseDispatcherLock | ( | IN KIRQL | OldIrql | ) |
Definition at line 157 of file ke_x.h.
Referenced by ExpExpandResourceOwnerTable(), KeBoostPriorityThread(), KeCancelTimer(), KeConnectInterrupt(), KeDelayExecutionThread(), KeDisconnectInterrupt(), KeInitializeMutant(), KeInsertHeadQueue(), KeInsertQueue(), KePulseEvent(), KeReadyThread(), KeReleaseMutant(), KeReleaseSemaphore(), KeResetEvent(), KeRevertToUserAffinityThread(), KeRundownThread(), KeSetAffinityThread(), KeSetBasePriorityThread(), KeSetEvent(), KeSetEventBoostPriority(), KeSetIdealProcessorThread(), KeSetPriorityThread(), KeSetProcess(), KeSetSystemAffinityThread(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), KiScanReadyQueues(), KiTimerExpiration(), and KiTimerListExpire().
FORCEINLINE VOID KiReleaseDispatcherLockFromSynchLevel | ( | VOID | ) |
Definition at line 174 of file ke_x.h.
Referenced by KeAlertResumeThread(), KeAlertThread(), KeDelayExecutionThread(), KeDetachProcess(), KeForceResumeThread(), KeFreezeAllThreads(), KeRemoveQueue(), KeRemoveQueueApc(), KeResumeThread(), KeRundownQueue(), KeSetAffinityProcess(), KeSetPriorityAndQuantumProcess(), KeSetTimerEx(), KeSignalGateBoostPriority(), KeStartThread(), KeSuspendThread(), KeTerminateThread(), KeThawAllThreads(), KeUnstackDetachProcess(), KeWaitForGate(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), KiAttachProcess(), KiCompleteTimer(), KiInsertQueueApc(), and KxInsertTimer().
FORCEINLINE VOID KiReleaseDispatcherObject | ( | IN DISPATCHER_HEADER * | Object | ) |
Definition at line 142 of file ke_x.h.
Referenced by KeSignalGateBoostPriority(), KeWaitForGate(), and KiInsertQueueApc().
FORCEINLINE VOID KiReleaseNmiListLock | ( | IN KIRQL | OldIrql | ) |
Definition at line 1689 of file ke_x.h.
Referenced by KeDeregisterNmiCallback(), and KeRegisterNmiCallback().
FORCEINLINE VOID KiReleasePrcbLock | ( | IN PKPRCB | Prcb | ) |
Definition at line 230 of file ke_x.h.
Referenced by _Requires_lock_held_(), _Requires_lock_not_held_(), KeRevertToUserAffinityThread(), KeSetSystemAffinityThread(), KiAdjustQuantumThread(), KiDeferredReadyThread(), KiInitializeKernel(), KiScanReadyQueues(), KiSetPriorityThread(), KiSwapThread(), KiSystemStartupBootStack(), and NtYieldExecution().
FORCEINLINE VOID KiReleaseProcessLock | ( | IN PKLOCK_QUEUE_HANDLE | Handle | ) |
Definition at line 660 of file ke_x.h.
Referenced by KeFreezeAllThreads(), KeQueryRuntimeProcess(), KeQueryValuesProcess(), KeSetQuantumProcess(), KeStartThread(), and MmSetExecuteOptions().
FORCEINLINE VOID KiReleaseProcessLockFromSynchLevel | ( | IN PKLOCK_QUEUE_HANDLE | Handle | ) |
Definition at line 668 of file ke_x.h.
Referenced by KeFreezeAllThreads(), KeSetAffinityProcess(), KeSetPriorityAndQuantumProcess(), KeTerminateThread(), and KeThawAllThreads().
FORCEINLINE VOID KiReleaseThreadLock | ( | IN PKTHREAD | Thread | ) |
Definition at line 250 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), ExpBoostOwnerThread(), KeBoostPriorityThread(), KeQueryBasePriorityThread(), KeSetBasePriorityThread(), KeSetPriorityAndQuantumProcess(), KeSetPriorityThread(), KeSignalGateBoostPriority(), KeWaitForGate(), KiAdjustQuantumThread(), KiDeferredReadyThread(), KiInsertQueueApc(), and NtYieldExecution().
FORCEINLINE VOID KiReleaseTimerLock | ( | IN PKSPIN_LOCK_QUEUE | LockQueue | ) |
Definition at line 297 of file ke_x.h.
Referenced by KeSetSystemTime(), KiCompleteTimer(), KiInsertTreeTimer(), KiTimerExpiration(), KxInsertTimer(), and KxRemoveTreeTimer().
FORCEINLINE VOID KiRemoveEntryTimer | ( | IN PKTIMER | Timer | ) |
Definition at line 892 of file ke_x.h.
Referenced by KeSetSystemTime(), KiCompleteTimer(), KiInsertTreeTimer(), and KiTimerExpiration().
Definition at line 276 of file ke_x.h.
Referenced by KiInsertQueueApc().
Definition at line 197 of file ke_x.h.
Definition at line 1422 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), KiAdjustQuantumThread(), KiSelectNextThread(), KiSetPriorityThread(), KiSwapThread(), and NtYieldExecution().
FORCEINLINE VOID KiSetThreadSwapBusy | ( | IN PKTHREAD | Thread | ) |
Definition at line 210 of file ke_x.h.
Referenced by _Requires_lock_not_held_(), KeDelayExecutionThread(), KeRemoveQueue(), KeTerminateThread(), KeWaitForGate(), KeWaitForMultipleObjects(), KeWaitForSingleObject(), KiExitDispatcher(), and NtYieldExecution().
FORCEINLINE BOOLEAN KiTryThreadLock | ( | IN PKTHREAD | Thread | ) |
Definition at line 260 of file ke_x.h.
Referenced by KeSignalGateBoostPriority().
Definition at line 923 of file ke_x.h.
Referenced by KeDelayExecutionThread(), KeRemoveQueue(), KeSetTimerEx(), KeWaitForMultipleObjects(), and KeWaitForSingleObject().
FORCEINLINE VOID KxRemoveTreeTimer | ( | IN PKTIMER | Timer | ) |
Definition at line 1004 of file ke_x.h.
Referenced by KeCancelTimer(), KeSetTimerEx(), KiInsertQueue(), and KiUnlinkThread().
FORCEINLINE VOID KxSetTimerForThreadWait | ( | IN PKTIMER | Timer, |
IN LARGE_INTEGER | Interval, | ||
OUT PULONG | Hand | ||
) |
Definition at line 1034 of file ke_x.h.
FORCEINLINE VOID KxUnwaitThread | ( | IN DISPATCHER_HEADER * | Object, |
IN KPRIORITY | Increment | ||
) |
Definition at line 1259 of file ke_x.h.
Referenced by KeSetEvent(), KeSetProcess(), KeTerminateThread(), KiSignalTimer(), KiTimerExpiration(), and KiTimerListExpire().
Definition at line 1304 of file ke_x.h.
Referenced by KeSetEvent(), KeSetEventBoostPriority(), KiSignalTimer(), KiTimerExpiration(), and KiTimerListExpire().