2010-03-13 00:34:48 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Kernel Functions *
|
|
|
|
******************************************************************************/
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2013-03-23 21:57:17 +00:00
|
|
|
#if defined(_M_IX86)
|
|
|
|
$include(x86/ke.h)
|
|
|
|
#elif defined(_M_AMD64)
|
|
|
|
$include(amd64/ke.h)
|
|
|
|
#elif defined(_M_IA64)
|
|
|
|
$include(ia64/ke.h)
|
|
|
|
#elif defined(_M_PPC)
|
|
|
|
$include(ppc/ke.h)
|
|
|
|
#elif defined(_M_MIPS)
|
|
|
|
$include(mips/ke.h)
|
|
|
|
#elif defined(_M_ARM)
|
|
|
|
$include(arm/ke.h)
|
|
|
|
#else
|
|
|
|
#error Unknown Architecture
|
|
|
|
#endif
|
2012-02-08 22:15:06 +00:00
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKEVENT Event,
|
|
|
|
_In_ EVENT_TYPE Type,
|
|
|
|
_In_ BOOLEAN State);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeClearEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKEVENT Event);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTDDK_)
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeInvalidateRangeAllCaches(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PVOID BaseAddress,
|
|
|
|
_In_ ULONG Length);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_NTIFS_)
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeGetProcessorNumberFromIndex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG ProcIndex,
|
|
|
|
_Out_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeGetProcessorIndexFromNumber(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTIFS_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
$if (_WDMDDK_)
|
|
|
|
#if defined(_NTDDK_) || defined(_NTIFS_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Maybe_raises_SEH_exception_
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
ProbeForRead(
|
2012-01-22 14:43:53 +00:00
|
|
|
__in_data_source(USER_MODE) _In_reads_bytes_(Length) CONST VOID *Address, /* CONST is added */
|
|
|
|
_In_ SIZE_T Length,
|
|
|
|
_In_ ULONG Alignment);
|
2010-03-27 15:31:25 +00:00
|
|
|
#endif /* defined(_NTDDK_) || defined(_NTIFS_) */
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Maybe_raises_SEH_exception_
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
ProbeForWrite(
|
2012-07-31 18:20:09 +00:00
|
|
|
__in_data_source(USER_MODE) _Out_writes_bytes_(Length) PVOID Address,
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ SIZE_T Length,
|
|
|
|
_In_ ULONG Alignment);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
$endif (_WDMDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_NTDDK_)
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetImportanceDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc,
|
|
|
|
_In_ KDPC_IMPORTANCE Importance);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KePulseEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKEVENT Event,
|
|
|
|
_In_ KPRIORITY Increment,
|
|
|
|
_In_ BOOLEAN Wait);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeSetBasePriorityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKTHREAD Thread,
|
|
|
|
_In_ LONG Increment);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Acquires_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeEnterCriticalRegion(VOID);
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Releases_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeLeaveCriticalRegion(VOID);
|
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
DECLSPEC_NORETURN
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeBugCheck(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG BugCheckCode);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif(_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if defined(SINGLE_GROUP_LEGACY_API)
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeRevertToUserAffinityThread(VOID);
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetSystemAffinityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KAFFINITY Affinity);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetTargetProcessorDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc,
|
|
|
|
_In_ CCHAR Number);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
KAFFINITY
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryActiveProcessors(VOID);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_NTDDK_)
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetTargetProcessorDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc,
|
|
|
|
_In_ CCHAR Number);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
KAFFINITY
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessors(VOID);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
#endif /* defined(SINGLE_GROUP_LEGACY_API) */
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
$if (_WDMDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if !defined(_M_AMD64)
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONGLONG
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryInterruptTime(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeQuerySystemTime(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PLARGE_INTEGER CurrentTime);
|
2010-03-13 00:34:48 +00:00
|
|
|
#endif /* !_M_AMD64 */
|
|
|
|
|
2011-06-04 16:59:09 +00:00
|
|
|
#if !defined(_X86_) && !defined(_M_ARM)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*SpinLock)
|
|
|
|
_Acquires_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_saves_
|
|
|
|
_IRQL_raises_(DISPATCH_LEVEL)
|
2010-03-24 05:20:22 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KIRQL
|
|
|
|
NTAPI
|
|
|
|
KeAcquireSpinLockRaiseToDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-24 05:20:22 +00:00
|
|
|
|
|
|
|
#define KeAcquireSpinLock(SpinLock, OldIrql) \
|
|
|
|
*(OldIrql) = KeAcquireSpinLockRaiseToDpc(SpinLock)
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*SpinLock)
|
|
|
|
_Acquires_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_min_(DISPATCH_LEVEL)
|
2010-03-24 05:20:22 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeAcquireSpinLockAtDpcLevel(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-24 05:20:22 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*SpinLock)
|
|
|
|
_Releases_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-24 05:20:22 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeReleaseSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock,
|
|
|
|
_In_ _IRQL_restores_ KIRQL NewIrql);
|
2010-03-24 05:20:22 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*SpinLock)
|
|
|
|
_Releases_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_min_(DISPATCH_LEVEL)
|
2010-03-24 05:20:22 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeReleaseSpinLockFromDpcLevel(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-24 05:20:22 +00:00
|
|
|
#endif /* !_X86_ */
|
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
#if defined(_X86_) && (defined(_WDM_INCLUDED_) || defined(WIN9X_COMPAT_SPINLOCK))
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKSPIN_LOCK SpinLock);
|
2010-03-13 00:34:48 +00:00
|
|
|
#else
|
|
|
|
FORCEINLINE
|
|
|
|
VOID
|
2012-01-22 14:43:53 +00:00
|
|
|
KeInitializeSpinLock(_Out_ PKSPIN_LOCK SpinLock)
|
2010-03-13 00:34:48 +00:00
|
|
|
{
|
2010-03-18 22:45:30 +00:00
|
|
|
/* Clear the lock */
|
|
|
|
*SpinLock = 0;
|
2010-03-13 00:34:48 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
NTKERNELAPI
|
2012-03-05 12:57:08 +00:00
|
|
|
DECLSPEC_NORETURN
|
2010-03-13 00:34:48 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeBugCheckEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG BugCheckCode,
|
|
|
|
_In_ ULONG_PTR BugCheckParameter1,
|
|
|
|
_In_ ULONG_PTR BugCheckParameter2,
|
|
|
|
_In_ ULONG_PTR BugCheckParameter3,
|
|
|
|
_In_ ULONG_PTR BugCheckParameter4);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeCancelTimer(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTIMER);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeDelayExecutionThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KPROCESSOR_MODE WaitMode,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_ PLARGE_INTEGER Interval);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeDeregisterBugCheckCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKBUGCHECK_CALLBACK_RECORD CallbackRecord);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Acquires_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeEnterCriticalRegion(VOID);
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKDEVICE_QUEUE DeviceQueue);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ __drv_aliasesMem PRKDPC Dpc,
|
|
|
|
_In_ PKDEFERRED_ROUTINE DeferredRoutine,
|
|
|
|
_In_opt_ __drv_aliasesMem PVOID DeferredContext);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKMUTEX Mutex,
|
|
|
|
_In_ ULONG Level);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeSemaphore(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKSEMAPHORE Semaphore,
|
|
|
|
_In_ LONG Count,
|
|
|
|
_In_ LONG Limit);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeTimer(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKTIMER Timer);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeTimerEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKTIMER Timer,
|
|
|
|
_In_ TIMER_TYPE Type);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeInsertByKeyDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue,
|
|
|
|
_Inout_ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry,
|
|
|
|
_In_ ULONG SortKey);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeInsertDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue,
|
|
|
|
_Inout_ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeInsertQueueDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc,
|
|
|
|
_In_opt_ PVOID SystemArgument1,
|
|
|
|
_In_opt_ PVOID SystemArgument2);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Releases_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeLeaveCriticalRegion(VOID);
|
|
|
|
|
|
|
|
NTHALAPI
|
|
|
|
LARGE_INTEGER
|
|
|
|
NTAPI
|
|
|
|
KeQueryPerformanceCounter(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_opt_ PLARGE_INTEGER PerformanceFrequency);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KPRIORITY
|
|
|
|
NTAPI
|
|
|
|
KeQueryPriorityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKTHREAD Thread);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryTimeIncrement(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReadStateEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKEVENT Event);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReadStateMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKMUTEX Mutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReadStateSemaphore(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKSEMAPHORE Semaphore);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeReadStateTimer(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKTIMER Timer);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeRegisterBugCheckCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKBUGCHECK_CALLBACK_RECORD CallbackRecord,
|
|
|
|
_In_ PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine,
|
|
|
|
_In_reads_bytes_opt_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ PUCHAR Component);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_When_(Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|
|
|
_When_(Wait==1, _IRQL_requires_max_(APC_LEVEL))
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReleaseMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKMUTEX Mutex,
|
|
|
|
_In_ BOOLEAN Wait);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_When_(Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|
|
|
_When_(Wait==1, _IRQL_requires_max_(APC_LEVEL))
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReleaseSemaphore(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKSEMAPHORE Semaphore,
|
|
|
|
_In_ KPRIORITY Increment,
|
|
|
|
_In_ LONG Adjustment,
|
|
|
|
_In_ _Literal_ BOOLEAN Wait);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PKDEVICE_QUEUE_ENTRY
|
|
|
|
NTAPI
|
|
|
|
KeRemoveByKeyDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue,
|
|
|
|
_In_ ULONG SortKey);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PKDEVICE_QUEUE_ENTRY
|
|
|
|
NTAPI
|
|
|
|
KeRemoveDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeRemoveEntryDeviceQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue,
|
|
|
|
_Inout_ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(HIGH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeRemoveQueueDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeResetEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKEVENT Event);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_When_(Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|
|
|
_When_(Wait==1, _IRQL_requires_max_(APC_LEVEL))
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeSetEvent(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKEVENT Event,
|
|
|
|
_In_ KPRIORITY Increment,
|
|
|
|
_In_ _Literal_ BOOLEAN Wait);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetImportanceDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKDPC Dpc,
|
|
|
|
_In_ KDPC_IMPORTANCE Importance);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KPRIORITY
|
|
|
|
NTAPI
|
|
|
|
KeSetPriorityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTHREAD Thread,
|
|
|
|
_In_ KPRIORITY Priority);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeSetTimer(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTIMER Timer,
|
|
|
|
_In_ LARGE_INTEGER DueTime,
|
|
|
|
_In_opt_ PKDPC Dpc);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeSetTimerEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTIMER Timer,
|
|
|
|
_In_ LARGE_INTEGER DueTime,
|
|
|
|
_In_ LONG Period OPTIONAL,
|
|
|
|
_In_opt_ PKDPC Dpc);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTHALAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeStallExecutionProcessor(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG MicroSeconds);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(HIGH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeSynchronizeExecution(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKINTERRUPT Interrupt,
|
|
|
|
_In_ PKSYNCHRONIZE_ROUTINE SynchronizeRoutine,
|
|
|
|
_In_opt_ __drv_aliasesMem PVOID SynchronizeContext);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2012-07-31 18:20:09 +00:00
|
|
|
_When_((Timeout==NULL || Timeout->QuadPart!=0), _IRQL_requires_max_(APC_LEVEL))
|
|
|
|
_When_((Timeout!=NULL && Timeout->QuadPart==0), _IRQL_requires_max_(DISPATCH_LEVEL))
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeWaitForMultipleObjects(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG Count,
|
|
|
|
_In_reads_(Count) PVOID Object[],
|
|
|
|
_In_ __drv_strictTypeMatch(__drv_typeConst) WAIT_TYPE WaitType,
|
|
|
|
_In_ __drv_strictTypeMatch(__drv_typeCond) KWAIT_REASON WaitReason,
|
|
|
|
_In_ __drv_strictType(KPROCESSOR_MODE/enum _MODE,__drv_typeConst) KPROCESSOR_MODE WaitMode,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout,
|
|
|
|
_Out_opt_ PKWAIT_BLOCK WaitBlockArray);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#define KeWaitForMutexObject KeWaitForSingleObject
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2012-07-31 18:20:09 +00:00
|
|
|
_When_((Timeout==NULL || Timeout->QuadPart!=0), _IRQL_requires_max_(APC_LEVEL))
|
|
|
|
_When_((Timeout!=NULL && Timeout->QuadPart==0), _IRQL_requires_max_(DISPATCH_LEVEL))
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeWaitForSingleObject(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ _Points_to_data_ PVOID Object,
|
|
|
|
_In_ __drv_strictTypeMatch(__drv_typeCond) KWAIT_REASON WaitReason,
|
|
|
|
_In_ __drv_strictType(KPROCESSOR_MODE/enum _MODE,__drv_typeConst) KPROCESSOR_MODE WaitMode,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTIFS_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeMutant(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKMUTANT Mutant,
|
|
|
|
_In_ BOOLEAN InitialOwner);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReadStateMutant(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKMUTANT Mutant);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_When_(Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL))
|
|
|
|
_When_(Wait==1, _IRQL_requires_max_(APC_LEVEL))
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReleaseMutant(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKMUTANT Mutant,
|
|
|
|
_In_ KPRIORITY Increment,
|
|
|
|
_In_ BOOLEAN Abandoned,
|
|
|
|
_In_ BOOLEAN Wait);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKQUEUE Queue,
|
|
|
|
_In_ ULONG Count);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeReadStateQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PRKQUEUE Queue);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeInsertQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKQUEUE Queue,
|
|
|
|
_Inout_ PLIST_ENTRY Entry);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
LONG
|
|
|
|
NTAPI
|
|
|
|
KeInsertHeadQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKQUEUE Queue,
|
|
|
|
_Inout_ PLIST_ENTRY Entry);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2012-09-26 09:40:44 +00:00
|
|
|
_When_((Timeout==NULL || Timeout->QuadPart!=0), _IRQL_requires_max_(APC_LEVEL))
|
|
|
|
_When_((Timeout!=NULL && Timeout->QuadPart==0), _IRQL_requires_max_(DISPATCH_LEVEL))
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PLIST_ENTRY
|
|
|
|
NTAPI
|
|
|
|
KeRemoveQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKQUEUE Queue,
|
|
|
|
_In_ KPROCESSOR_MODE WaitMode,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeAttachProcess(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKPROCESS Process);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2012-01-22 14:43:53 +00:00
|
|
|
KeDetachProcess(VOID);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PLIST_ENTRY
|
|
|
|
NTAPI
|
|
|
|
KeRundownQueue(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRKQUEUE Queue);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeStackAttachProcess(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKPROCESS Process,
|
|
|
|
_Out_ PKAPC_STATE ApcState);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeUnstackDetachProcess(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKAPC_STATE ApcState);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
UCHAR
|
|
|
|
NTAPI
|
|
|
|
KeSetIdealProcessorThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTHREAD Thread,
|
|
|
|
_In_ UCHAR Processor);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeSetKernelStackSwapEnable(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ BOOLEAN Enable);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
#if defined(_X86_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*SpinLock)
|
|
|
|
_Acquires_lock_(*SpinLock)
|
|
|
|
_IRQL_raises_(SYNCH_LEVEL)
|
|
|
|
_IRQL_saves_
|
2010-03-27 15:31:25 +00:00
|
|
|
NTHALAPI
|
|
|
|
KIRQL
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireSpinLockRaiseToSynch(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-27 15:31:25 +00:00
|
|
|
#else
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*SpinLock)
|
|
|
|
_Acquires_lock_(*SpinLock)
|
|
|
|
_IRQL_raises_(SYNCH_LEVEL)
|
|
|
|
_IRQL_saves_
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KIRQL
|
|
|
|
KeAcquireSpinLockRaiseToSynch(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-27 15:31:25 +00:00
|
|
|
#endif
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_NTIFS_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
|
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*LockHandle)
|
|
|
|
_Acquires_lock_(*LockHandle)
|
|
|
|
_Post_same_lock_(*SpinLock, *LockHandle)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_saves_global_(QueuedSpinLock,LockHandle)
|
|
|
|
_IRQL_raises_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
_DECL_HAL_KE_IMPORT
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireInStackQueuedSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock,
|
|
|
|
_Out_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*LockHandle)
|
|
|
|
_Acquires_lock_(*LockHandle)
|
|
|
|
_Post_same_lock_(*SpinLock, *LockHandle)
|
|
|
|
_IRQL_requires_min_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireInStackQueuedSpinLockAtDpcLevel(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock,
|
|
|
|
_Out_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*Interrupt->ActualLock)
|
|
|
|
_Acquires_lock_(*Interrupt->ActualLock)
|
|
|
|
_IRQL_requires_max_(HIGH_LEVEL)
|
|
|
|
_IRQL_saves_
|
|
|
|
_IRQL_raises_(HIGH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KIRQL
|
|
|
|
NTAPI
|
|
|
|
KeAcquireInterruptSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKINTERRUPT Interrupt);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeAreApcsDisabled(VOID);
|
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeGetRecommendedSharedDataAlignment(VOID);
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryRuntimeThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKTHREAD Thread,
|
|
|
|
_Out_ PULONG UserTime);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*LockHandle)
|
|
|
|
_Releases_lock_(*LockHandle)
|
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseInStackQueuedSpinLockFromDpcLevel(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*Interrupt->ActualLock)
|
|
|
|
_Releases_lock_(*Interrupt->ActualLock)
|
|
|
|
_IRQL_requires_(HIGH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeReleaseInterruptSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKINTERRUPT Interrupt,
|
|
|
|
_In_ _IRQL_restores_ KIRQL OldIrql);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PKDEVICE_QUEUE_ENTRY
|
|
|
|
NTAPI
|
|
|
|
KeRemoveByKeyDeviceQueueIfBusy(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDEVICE_QUEUE DeviceQueue,
|
|
|
|
_In_ ULONG SortKey);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*LockHandle)
|
|
|
|
_Releases_lock_(*LockHandle)
|
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_restores_global_(QueuedSpinLock,LockHandle)
|
2010-03-13 00:34:48 +00:00
|
|
|
_DECL_HAL_KE_IMPORT
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseInStackQueuedSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeAreApcsDisabled(VOID);
|
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_NTIFS_)
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(Number)
|
|
|
|
_Acquires_lock_(Number)
|
|
|
|
_IRQL_raises_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
_DECL_HAL_KE_IMPORT
|
|
|
|
KIRQL
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireQueuedSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KSPIN_LOCK_QUEUE_NUMBER Number);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(Number)
|
|
|
|
_Releases_lock_(Number)
|
2010-03-27 15:31:25 +00:00
|
|
|
_DECL_HAL_KE_IMPORT
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseQueuedSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KSPIN_LOCK_QUEUE_NUMBER Number,
|
|
|
|
_In_ KIRQL OldIrql);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_Post_satisfies_(return == 1 || return == 0)
|
2010-03-27 15:31:25 +00:00
|
|
|
_DECL_HAL_KE_IMPORT
|
|
|
|
LOGICAL
|
|
|
|
FASTCALL
|
|
|
|
KeTryToAcquireQueuedSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KSPIN_LOCK_QUEUE_NUMBER Number,
|
|
|
|
_Out_ _At_(*OldIrql, _IRQL_saves_) PKIRQL OldIrql);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTIFS_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
|
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if (NTDDI_VERSION >= NTDDI_WINXPSP1)
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeDeregisterBugCheckReasonCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeRegisterBugCheckReasonCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord,
|
|
|
|
_In_ PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine,
|
|
|
|
_In_ KBUGCHECK_CALLBACK_REASON Reason,
|
|
|
|
_In_ PUCHAR Component);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXPSP1) */
|
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WINXPSP2)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeFlushQueuedDpcs(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXPSP2) */
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if (NTDDI_VERSION >= NTDDI_WS03)
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
PVOID
|
|
|
|
NTAPI
|
|
|
|
KeRegisterNmiCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PNMI_CALLBACK CallbackRoutine,
|
|
|
|
_In_opt_ PVOID Context);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeDeregisterNmiCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PVOID Handle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeInitializeThreadedDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PRKDPC Dpc,
|
|
|
|
_In_ PKDEFERRED_ROUTINE DeferredRoutine,
|
|
|
|
_In_opt_ PVOID DeferredContext);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(IPI_LEVEL-1)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG_PTR
|
|
|
|
NTAPI
|
|
|
|
KeIpiGenericCall(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKIPI_BROADCAST_WORKER BroadcastFunction,
|
|
|
|
_In_ ULONG_PTR Context);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*SpinLock)
|
|
|
|
_Acquires_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_saves_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KIRQL
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireSpinLockForDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*SpinLock)
|
|
|
|
_Releases_lock_(*SpinLock)
|
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseSpinLockForDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock,
|
|
|
|
_In_ _IRQL_restores_ KIRQL OldIrql);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
FASTCALL
|
|
|
|
KeTestSpinLock(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKSPIN_LOCK SpinLock);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
2010-03-24 05:20:22 +00:00
|
|
|
|
|
|
|
$if (_NTDDK_)
|
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeInvalidateAllCaches(VOID);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WS03) */
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-27 15:31:25 +00:00
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if (NTDDI_VERSION >= NTDDI_WS03SP1)
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_min_(DISPATCH_LEVEL)
|
|
|
|
_Post_satisfies_(return == 1 || return == 0)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
FASTCALL
|
|
|
|
KeTryToAcquireSpinLockAtDpcLevel(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ _Requires_lock_not_held_(*_Curr_)
|
|
|
|
_When_(return!=0, _Acquires_lock_(*_Curr_))
|
|
|
|
PKSPIN_LOCK SpinLock);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeAreAllApcsDisabled(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Acquires_lock_(_Global_critical_region_)
|
|
|
|
_Requires_lock_not_held_(*Mutex)
|
|
|
|
_Acquires_lock_(*Mutex)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireGuardedMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*FastMutex)
|
|
|
|
_Acquires_lock_(*FastMutex)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireGuardedMutexUnsafe(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Acquires_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeEnterGuardedRegion(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Releases_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeLeaveGuardedRegion(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeInitializeGuardedMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*FastMutex)
|
|
|
|
_Releases_lock_(*FastMutex)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseGuardedMutexUnsafe(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Releases_lock_(_Global_critical_region_)
|
|
|
|
_Requires_lock_held_(*Mutex)
|
|
|
|
_Releases_lock_(*Mutex)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseGuardedMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_Success_(return != FALSE)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
|
|
|
_Post_satisfies_(return == 1 || return == 0)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
FASTCALL
|
|
|
|
KeTryToAcquireGuardedMutex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_When_ (return, _Requires_lock_not_held_(*_Curr_) _Acquires_exclusive_lock_(*_Curr_)) _Acquires_lock_(_Global_critical_region_)
|
|
|
|
_Inout_ PKGUARDED_MUTEX GuardedMutex);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeExpandKernelStackAndCallout(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PEXPAND_STACK_CALLOUT Callout,
|
|
|
|
_In_opt_ PVOID Parameter,
|
|
|
|
_In_ SIZE_T Size);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Acquires_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeEnterGuardedRegion(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Releases_lock_(_Global_critical_region_)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeLeaveGuardedRegion(VOID);
|
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WS03SP1) */
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_not_held_(*LockHandle)
|
|
|
|
_Acquires_lock_(*LockHandle)
|
|
|
|
_Post_same_lock_(*SpinLock, *LockHandle)
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_saves_global_(QueuedSpinLock,LockHandle)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeAcquireInStackQueuedSpinLockForDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKSPIN_LOCK SpinLock,
|
|
|
|
_Out_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Requires_lock_held_(*LockHandle)
|
|
|
|
_Releases_lock_(*LockHandle)
|
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_restores_global_(QueuedSpinLock,LockHandle)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
KeReleaseInStackQueuedSpinLockForDpc(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKLOCK_QUEUE_HANDLE LockHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeQueryDpcWatchdogInformation(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_ PKDPC_WATCHDOG_INFORMATION WatchdogInformation);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if defined(SINGLE_GROUP_LEGACY_API)
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
KAFFINITY
|
|
|
|
NTAPI
|
|
|
|
KeSetSystemAffinityThreadEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KAFFINITY Affinity);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
[NTOSKRNL]
- Remove duplicate SINGLE_GROUP_LEGACY_API definition.
[PSDK]
- Add missing GROUP_AFFINITY structure.
[NTDDK]
- Remove ExFreePool definition.
[NDK]
- Remove duplicate PROCESSOR_CACHE_TYPE and CACHE_DESCRIPTOR definitions (they now exist in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Add PROCESSOR_CALLBACK_FUNCTION, INVALID_PROCESSOR_INDEX, XSTATE_SAVE, LOOKASIDE_MINIMUM_BLOCK_SIZE and several missing Ke*, KBUGCHECK_*, KB_ADD_PAGES_FLAG_*, EXCEPTION_*, KE_PROCESSOR_CHANGE_*, Ex*, FirstEntrySList, and EX_*, RESOURCE_* definitions.
- Update ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList, OWNER_ENTRY and ERESOURCE.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46287
2010-03-20 16:58:43 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeRevertToUserAffinityThreadEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ KAFFINITY Affinity);
|
[NTOSKRNL]
- Remove duplicate SINGLE_GROUP_LEGACY_API definition.
[PSDK]
- Add missing GROUP_AFFINITY structure.
[NTDDK]
- Remove ExFreePool definition.
[NDK]
- Remove duplicate PROCESSOR_CACHE_TYPE and CACHE_DESCRIPTOR definitions (they now exist in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Add PROCESSOR_CALLBACK_FUNCTION, INVALID_PROCESSOR_INDEX, XSTATE_SAVE, LOOKASIDE_MINIMUM_BLOCK_SIZE and several missing Ke*, KBUGCHECK_*, KB_ADD_PAGES_FLAG_*, EXCEPTION_*, KE_PROCESSOR_CHANGE_*, Ex*, FirstEntrySList, and EX_*, RESOURCE_* definitions.
- Update ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList, OWNER_ENTRY and ERESOURCE.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46287
2010-03-20 16:58:43 +00:00
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessorCount(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_opt_ PKAFFINITY ActiveProcessors);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryMaximumProcessorCount(VOID);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTDDK_)
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessorCount(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_opt_ PKAFFINITY ActiveProcessors);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryMaximumProcessorCount(VOID);
|
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-24 05:20:22 +00:00
|
|
|
#endif /* SINGLE_GROUP_LEGACY_API */
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-27 15:31:25 +00:00
|
|
|
$if (_NTIFS_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
KeQueryOwnerMutant(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PKMUTANT Mutant,
|
|
|
|
_Out_ PCLIENT_ID ClientId);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_When_((Timeout==NULL || *Timeout!=0), _IRQL_requires_max_(APC_LEVEL))
|
|
|
|
_When_((Timeout!=NULL && *Timeout==0), _IRQL_requires_max_(DISPATCH_LEVEL))
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
2012-01-13 17:45:26 +00:00
|
|
|
NTAPI
|
|
|
|
KeRemoveQueueEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKQUEUE Queue,
|
|
|
|
_In_ KPROCESSOR_MODE WaitMode,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout,
|
|
|
|
_Out_writes_to_(Count, return) PLIST_ENTRY *EntryArray,
|
|
|
|
_In_ ULONG Count);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTIFS_)
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-18 22:45:30 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if (NTDDI_VERSION >= NTDDI_WS08)
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
PVOID
|
2012-01-13 17:45:26 +00:00
|
|
|
NTAPI
|
2010-03-13 00:34:48 +00:00
|
|
|
KeRegisterProcessorChangeCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PPROCESSOR_CALLBACK_FUNCTION CallbackFunction,
|
|
|
|
_In_opt_ PVOID CallbackContext,
|
|
|
|
_In_ ULONG Flags);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
VOID
|
2012-01-13 17:45:26 +00:00
|
|
|
NTAPI
|
2010-03-13 00:34:48 +00:00
|
|
|
KeDeregisterProcessorChangeCallback(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PVOID CallbackHandle);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WS08) */
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if (NTDDI_VERSION >= NTDDI_WIN7)
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
$if (_WDMDDK_)
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_same_
|
2010-03-27 15:31:25 +00:00
|
|
|
ULONG64
|
|
|
|
NTAPI
|
|
|
|
KeQueryTotalCycleTimeProcess(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKPROCESS Process,
|
|
|
|
_Out_ PULONG64 CycleTimeStamp);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_same_
|
2010-03-27 15:31:25 +00:00
|
|
|
ULONG64
|
|
|
|
NTAPI
|
|
|
|
KeQueryTotalCycleTimeThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTHREAD Thread,
|
|
|
|
_Out_ PULONG64 CycleTimeStamp);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeSetTargetProcessorDpcEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKDPC Dpc,
|
|
|
|
_In_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeSetSystemGroupAffinityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PGROUP_AFFINITY Affinity,
|
|
|
|
_Out_opt_ PGROUP_AFFINITY PreviousAffinity);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_min_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeRevertToUserGroupAffinityThread(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PGROUP_AFFINITY PreviousAffinity);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-27 15:31:25 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KeSetCoalescableTimer(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PKTIMER Timer,
|
|
|
|
_In_ LARGE_INTEGER DueTime,
|
|
|
|
_In_ ULONG Period,
|
|
|
|
_In_ ULONG TolerableDelay,
|
|
|
|
_In_opt_ PKDPC Dpc);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONGLONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryUnbiasedInterruptTime(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessorCountEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryMaximumProcessorCountEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveGroupCount(VOID);
|
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryMaximumGroupCount(VOID);
|
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
KAFFINITY
|
|
|
|
NTAPI
|
|
|
|
KeQueryGroupAffinity(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeGetCurrentProcessorNumberEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_opt_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeQueryNodeActiveAffinity(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT NodeNumber,
|
|
|
|
_Out_opt_ PGROUP_AFFINITY Affinity,
|
|
|
|
_Out_opt_ PUSHORT Count);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryNodeMaximumProcessorCount(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT NodeNumber);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryHighestNodeNumber(VOID);
|
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeGetCurrentNodeNumber(VOID);
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeQueryLogicalProcessorRelationship(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_opt_ PPROCESSOR_NUMBER ProcessorNumber OPTIONAL,
|
|
|
|
_In_ LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType,
|
|
|
|
_Out_writes_bytes_opt_(*Length) PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Information,
|
|
|
|
_Inout_ PULONG Length);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Must_inspect_result_
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
|
|
|
_Ret_range_(<=, 0)
|
|
|
|
_When_(return==0, _Kernel_float_saved_)
|
2010-03-23 00:27:32 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeSaveExtendedProcessorState(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG64 Mask,
|
|
|
|
_Out_ _Requires_lock_not_held_(*_Curr_)
|
|
|
|
_When_(return==0, _Acquires_lock_(*_Curr_))
|
|
|
|
PXSTATE_SAVE XStateSave);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Kernel_float_restored_
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeRestoreExtendedProcessorState(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ _Requires_lock_held_(*_Curr_) _Releases_lock_(*_Curr_)
|
|
|
|
PXSTATE_SAVE XStateSave);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
NTSTATUS
|
2010-03-13 00:34:48 +00:00
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeGetProcessorNumberFromIndex(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG ProcIndex,
|
|
|
|
_Out_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
ULONG
|
2010-03-13 00:34:48 +00:00
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeGetProcessorIndexFromNumber(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
|
|
|
$if (_NTDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessorCountEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryMaximumProcessorCountEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryActiveGroupCount(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryMaximumGroupCount(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
KAFFINITY
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryGroupAffinity(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT GroupNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeGetCurrentProcessorNumberEx(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_opt_ PPROCESSOR_NUMBER ProcNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeQueryNodeActiveAffinity(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT NodeNumber,
|
|
|
|
_Out_opt_ PGROUP_AFFINITY Affinity,
|
|
|
|
_Out_opt_ PUSHORT Count);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryNodeMaximumProcessorCount(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ USHORT NodeNumber);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeQueryHighestNodeNumber(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
NTKERNELAPI
|
|
|
|
USHORT
|
|
|
|
NTAPI
|
2010-03-18 22:45:30 +00:00
|
|
|
KeGetCurrentNodeNumber(VOID);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KeQueryLogicalProcessorRelationship(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_opt_ PPROCESSOR_NUMBER ProcessorNumber,
|
|
|
|
_In_ LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType,
|
|
|
|
_Out_writes_bytes_opt_(*Length) PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Information,
|
|
|
|
_Inout_ PULONG Length);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeSetHardwareCounterConfiguration(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_reads_(Count) PHARDWARE_COUNTER CounterArray,
|
|
|
|
_In_ ULONG Count);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_max_(APC_LEVEL)
|
2010-03-13 00:34:48 +00:00
|
|
|
NTKERNELAPI
|
[NTOSKRNL]
- Remove duplicate SINGLE_GROUP_LEGACY_API definition.
[PSDK]
- Add missing GROUP_AFFINITY structure.
[NTDDK]
- Remove ExFreePool definition.
[NDK]
- Remove duplicate PROCESSOR_CACHE_TYPE and CACHE_DESCRIPTOR definitions (they now exist in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Add PROCESSOR_CALLBACK_FUNCTION, INVALID_PROCESSOR_INDEX, XSTATE_SAVE, LOOKASIDE_MINIMUM_BLOCK_SIZE and several missing Ke*, KBUGCHECK_*, KB_ADD_PAGES_FLAG_*, EXCEPTION_*, KE_PROCESSOR_CHANGE_*, Ex*, FirstEntrySList, and EX_*, RESOURCE_* definitions.
- Update ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList, OWNER_ENTRY and ERESOURCE.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46287
2010-03-20 16:58:43 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
2010-03-27 15:31:25 +00:00
|
|
|
KeQueryHardwareCounterConfiguration(
|
2012-01-22 14:43:53 +00:00
|
|
|
_Out_writes_to_(MaximumCount, *Count) PHARDWARE_COUNTER CounterArray,
|
|
|
|
_In_ ULONG MaximumCount,
|
|
|
|
_Out_ PULONG Count);
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_WDMDDK_ || _NTDDK_)
|
2010-03-18 22:45:30 +00:00
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_WDMDDK_ || _NTDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#if !defined(_IA64_)
|
|
|
|
NTHALAPI
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KeFlushWriteBuffer(VOID);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* VOID
|
|
|
|
* KeInitializeCallbackRecord(
|
|
|
|
* IN PKBUGCHECK_CALLBACK_RECORD CallbackRecord)
|
|
|
|
*/
|
|
|
|
#define KeInitializeCallbackRecord(CallbackRecord) \
|
|
|
|
CallbackRecord->State = BufferEmpty;
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
#if defined(_PREFAST_)
|
|
|
|
|
|
|
|
void __PREfastPagedCode(void);
|
|
|
|
void __PREfastPagedCodeLocked(void);
|
|
|
|
#define PAGED_CODE() __PREfastPagedCode();
|
|
|
|
#define PAGED_CODE_LOCKED() __PREfastPagedCodeLocked();
|
|
|
|
|
|
|
|
#elif DBG
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
|
|
|
#define PAGED_ASSERT( exp ) NT_ASSERT( exp )
|
|
|
|
#else
|
|
|
|
#define PAGED_ASSERT( exp ) ASSERT( exp )
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PAGED_CODE() { \
|
|
|
|
if (KeGetCurrentIrql() > APC_LEVEL) { \
|
|
|
|
KdPrint( ("NTDDK: Pageable code called at IRQL > APC_LEVEL (%d)\n", KeGetCurrentIrql() )); \
|
|
|
|
PAGED_ASSERT(FALSE); \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
#define PAGED_CODE_LOCKED() NOP_FUNCTION;
|
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
#else
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
#define PAGED_CODE() NOP_FUNCTION;
|
|
|
|
#define PAGED_CODE_LOCKED() NOP_FUNCTION;
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-18 22:45:30 +00:00
|
|
|
#endif /* DBG */
|
2010-03-13 00:34:48 +00:00
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|