ReactOS  r75385
kefuncs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define KeAcquireSpinLock(SpinLock, OldIrql)   *(OldIrql) = KeAcquireSpinLockRaiseToDpc(SpinLock)
 
#define KeWaitForMutexObject   KeWaitForSingleObject
 
#define KeInitializeCallbackRecord(CallbackRecord)   CallbackRecord->State = BufferEmpty;
 
#define PAGED_CODE()   NOP_FUNCTION;
 
#define PAGED_CODE_LOCKED()   NOP_FUNCTION;
 

Functions

 $if (_WDMDDK_) NTKERNELAPI VOID NTAPI KeInitializeEvent(_Out_ PRKEVENT Event
 
 _IRQL_requires_max_ (DISPATCH_LEVEL) NTKERNELAPI VOID NTAPI KeClearEvent(_Inout_ PRKEVENT Event)
 
 $endif (_WDMDDK_) $if(_NTDDK_) _IRQL_requires_min_(PASSIVE_LEVEL) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI VOID FASTCALL KeInvalidateRangeAllCaches(_In_ PVOID BaseAddress
 
 $endif (_NTDDK_) $if(_NTIFS_) NTSTATUS NTAPI KeGetProcessorNumberFromIndex(_In_ ULONG ProcIndex
 
ULONG NTAPI KeGetProcessorIndexFromNumber (_In_ PPROCESSOR_NUMBER ProcNumber)
 
 $endif (_NTIFS_) $if(_WDMDDK_) _Maybe_raises_SEH_exception_ _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI VOID NTAPI ProbeForWrite(__in_data_source(USER_MODE) _Out_writes_bytes_(Length) PVOID Address
 
 _IRQL_requires_min_ (PASSIVE_LEVEL) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI LONG NTAPI KeSetBasePriorityThread(_Inout_ PRKTHREAD Thread
 
 _Acquires_lock_ (_Global_critical_region_) _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI VOID NTAPI KeEnterCriticalRegion(VOID)
 
 _Releases_lock_ (_Global_critical_region_) _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI VOID NTAPI KeLeaveCriticalRegion(VOID)
 
NTKERNELAPI DECLSPEC_NORETURN
VOID NTAPI 
KeBugCheck (_In_ ULONG BugCheckCode)
 
NTKERNELAPI VOID NTAPI KeQuerySystemTime (_Out_ PLARGE_INTEGER CurrentTime)
 
_Requires_lock_not_held_
SpinLock _Acquires_lock_
SpinLock 
_IRQL_requires_min_ (DISPATCH_LEVEL) NTKERNELAPI VOID NTAPI KeAcquireSpinLockAtDpcLevel(_Inout_ PKSPIN_LOCK SpinLock)
 
_Requires_lock_held_ SpinLock
_Releases_lock_ SpinLock 
_IRQL_requires_ (DISPATCH_LEVEL) NTKERNELAPI VOID NTAPI KeReleaseSpinLock(_Inout_ PKSPIN_LOCK SpinLock
 
FORCEINLINE VOID KeInitializeSpinLock (_Out_ PKSPIN_LOCK SpinLock)
 
NTKERNELAPI DECLSPEC_NORETURN
VOID NTAPI 
KeBugCheckEx (_In_ ULONG BugCheckCode, _In_ ULONG_PTR BugCheckParameter1, _In_ ULONG_PTR BugCheckParameter2, _In_ ULONG_PTR BugCheckParameter3, _In_ ULONG_PTR BugCheckParameter4)
 
_Must_inspect_result_
NTKERNELAPI BOOLEAN NTAPI 
KeDeregisterBugCheckCallback (_Inout_ PKBUGCHECK_CALLBACK_RECORD CallbackRecord)
 
NTKERNELAPI VOID NTAPI KeInitializeDpc (_Out_ __drv_aliasesMem PRKDPC Dpc, _In_ PKDEFERRED_ROUTINE DeferredRoutine, _In_opt_ __drv_aliasesMem PVOID DeferredContext)
 
NTKERNELAPI VOID NTAPI KeInitializeMutex (_Out_ PRKMUTEX Mutex, _In_ ULONG Level)
 
 _IRQL_requires_max_ (PASSIVE_LEVEL) NTKERNELAPI VOID NTAPI KeInitializeSemaphore(_Out_ PRKSEMAPHORE Semaphore
 
NTKERNELAPI BOOLEAN NTAPI KeInsertQueueDpc (_Inout_ PRKDPC Dpc, _In_opt_ PVOID SystemArgument1, _In_opt_ PVOID SystemArgument2)
 
NTHALAPI LARGE_INTEGER NTAPI KeQueryPerformanceCounter (_Out_opt_ PLARGE_INTEGER PerformanceFrequency)
 
NTKERNELAPI ULONG NTAPI KeQueryTimeIncrement (VOID)
 
_Must_inspect_result_
NTKERNELAPI BOOLEAN NTAPI 
KeRegisterBugCheckCallback (_Out_ PKBUGCHECK_CALLBACK_RECORD CallbackRecord, _In_ PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine, _In_reads_bytes_opt_(Length) PVOID Buffer, _In_ ULONG Length, _In_ PUCHAR Component)
 
 _When_ (Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(Wait
 
 _IRQL_requires_max_ (APC_LEVEL)) NTKERNELAPI LONG NTAPI KeReleaseMutex(_Inout_ PRKMUTEX Mutex
 
 _IRQL_requires_max_ (HIGH_LEVEL) NTKERNELAPI BOOLEAN NTAPI KeRemoveQueueDpc(_Inout_ PRKDPC Dpc)
 
NTKERNELAPI VOID NTAPI KeSetImportanceDpc (_Inout_ PRKDPC Dpc, _In_ KDPC_IMPORTANCE Importance)
 
NTHALAPI VOID NTAPI KeStallExecutionProcessor (_In_ ULONG MicroSeconds)
 
NTKERNELAPI VOID NTAPI KeInitializeQueue (_Out_ PRKQUEUE Queue, _In_ ULONG Count)
 
_Requires_lock_not_held_
SpinLock _Acquires_lock_
SpinLock 
_IRQL_raises_ (SYNCH_LEVEL) _IRQL_saves_ NTKERNELAPI KIRQL KeAcquireSpinLockRaiseToSynch(_Inout_ PKSPIN_LOCK SpinLock)
 
*LockHandle LockHandle _IRQL_raises_ (DISPATCH_LEVEL) _DECL_HAL_KE_IMPORT VOID FASTCALL KeAcquireInStackQueuedSpinLock(_Inout_ PKSPIN_LOCK SpinLock
 
NTKERNELAPI ULONG NTAPI KeGetRecommendedSharedDataAlignment (VOID)
 
_Requires_lock_held_ Interrupt
_Releases_lock_ Interrupt 
_IRQL_requires_ (HIGH_LEVEL) NTKERNELAPI VOID NTAPI KeReleaseInterruptSpinLock(_Inout_ PKINTERRUPT Interrupt
 
_Requires_lock_held_
LockHandle _Releases_lock_
LockHandle LockHandle
_DECL_HAL_KE_IMPORT VOID
FASTCALL 
KeReleaseInStackQueuedSpinLock (_In_ PKLOCK_QUEUE_HANDLE LockHandle)
 
 _Requires_lock_held_ (Number) _Releases_lock_(Number) _DECL_HAL_KE_IMPORT VOID FASTCALL KeReleaseQueuedSpinLock(_In_ KSPIN_LOCK_QUEUE_NUMBER Number
 
_Must_inspect_result_ _Post_satisfies_ (return==1||return==0) _DECL_HAL_KE_IMPORT LOGICAL FASTCALL KeTryToAcquireQueuedSpinLock(_In_ KSPIN_LOCK_QUEUE_NUMBER Number
 
_Must_inspect_result_
NTKERNELAPI BOOLEAN NTAPI 
KeRegisterBugCheckReasonCallback (_Out_ PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord, _In_ PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine, _In_ KBUGCHECK_CALLBACK_REASON Reason, _In_ PUCHAR Component)
 
NTKERNELAPI VOID NTAPI KeInitializeThreadedDpc (_Out_ PRKDPC Dpc, _In_ PKDEFERRED_ROUTINE DeferredRoutine, _In_opt_ PVOID DeferredContext)
 
_Must_inspect_result_
NTKERNELAPI BOOLEAN FASTCALL 
KeTestSpinLock (_In_ PKSPIN_LOCK SpinLock)
 
_Must_inspect_result_ _Success_ (return!=FALSE) _IRQL_requires_max_(APC_LEVEL) _Post_satisfies_(return
 Returns the name of an atom. More...
 
*LockHandle LockHandle
NTKERNELAPI VOID FASTCALL 
KeAcquireInStackQueuedSpinLockForDpc (_Inout_ PKSPIN_LOCK SpinLock, _Out_ PKLOCK_QUEUE_HANDLE LockHandle)
 
_Requires_lock_held_
LockHandle _Releases_lock_
LockHandle LockHandle
NTKERNELAPI VOID FASTCALL 
KeReleaseInStackQueuedSpinLockForDpc (_In_ PKLOCK_QUEUE_HANDLE LockHandle)
 
_Must_inspect_result_
NTKERNELAPI NTSTATUS NTAPI 
KeSetTargetProcessorDpcEx (_Inout_ PKDPC Dpc, _In_ PPROCESSOR_NUMBER ProcNumber)
 
NTKERNELAPI ULONGLONG NTAPI KeQueryUnbiasedInterruptTime (VOID)
 
NTKERNELAPI ULONG NTAPI KeQueryActiveProcessorCountEx (_In_ USHORT GroupNumber)
 
NTKERNELAPI ULONG NTAPI KeQueryMaximumProcessorCountEx (_In_ USHORT GroupNumber)
 
NTKERNELAPI USHORT NTAPI KeQueryActiveGroupCount (VOID)
 
NTKERNELAPI USHORT NTAPI KeQueryMaximumGroupCount (VOID)
 
NTKERNELAPI KAFFINITY NTAPI KeQueryGroupAffinity (_In_ USHORT GroupNumber)
 
NTKERNELAPI ULONG NTAPI KeGetCurrentProcessorNumberEx (_Out_opt_ PPROCESSOR_NUMBER ProcNumber)
 
NTKERNELAPI VOID NTAPI KeQueryNodeActiveAffinity (_In_ USHORT NodeNumber, _Out_opt_ PGROUP_AFFINITY Affinity, _Out_opt_ PUSHORT Count)
 
NTKERNELAPI USHORT NTAPI KeQueryNodeMaximumProcessorCount (_In_ USHORT NodeNumber)
 
NTKERNELAPI USHORT NTAPI KeQueryHighestNodeNumber (VOID)
 
NTKERNELAPI USHORT NTAPI KeGetCurrentNodeNumber (VOID)
 
_Must_inspect_result_ _When_ (return==0, _Kernel_float_saved_) NTKERNELAPI NTSTATUS NTAPI KeSaveExtendedProcessorState(_In_ ULONG64 Mask
 
_Must_inspect_result_ _Out_
_Requires_lock_not_held_
_Curr_ 
_When_ (return==0, _Acquires_lock_(*_Curr_)) PXSTATE_SAVE XStateSave)
 
_Kernel_float_restored_
NTKERNELAPI VOID NTAPI 
KeRestoreExtendedProcessorState (_In_ _Requires_lock_held_(*_Curr_) _Releases_lock_(*_Curr_) PXSTATE_SAVE XStateSave)
 
NTSTATUS NTAPI KeGetProcessorNumberFromIndex (_In_ ULONG ProcIndex, _Out_ PPROCESSOR_NUMBER ProcNumber)
 

Variables

_In_ EVENT_TYPE Type
 
_In_ EVENT_TYPE _In_ BOOLEAN State
 
_In_ ULONG Length
 
_Out_ PPROCESSOR_NUMBER ProcNumber
 
_In_ SIZE_T _In_ ULONG Alignment
 
_In_ KDPC_IMPORTANCE Importance
 
_In_ KPRIORITY Increment
 
_In_ KPRIORITY _In_ BOOLEAN Wait
 
_Requires_lock_held_ SpinLock
_Releases_lock_ SpinLock _In_
_IRQL_restores_ KIRQL 
NewIrql
 
_In_ BOOLEAN Alertable
 
_In_ BOOLEAN _In_ PLARGE_INTEGER Interval
 
_In_ LONG Count
 
_In_ LONG _In_ LONG Limit
 
_Inout_ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry
 
_Inout_ PKDEVICE_QUEUE_ENTRY
_In_ ULONG 
SortKey
 
_In_ KPRIORITY _In_ LONG Adjustment
 
_In_ KPRIORITY Priority
 
_In_ LARGE_INTEGER DueTime
 
_In_ LARGE_INTEGER _In_opt_ PKDPC Dpc
 
_In_ LARGE_INTEGER _In_ LONG Period OPTIONAL
 
_In_ PKSYNCHRONIZE_ROUTINE SynchronizeRoutine
 
_In_ PKSYNCHRONIZE_ROUTINE
_In_opt_ __drv_aliasesMem
PVOID 
SynchronizeContext
 
_In_ BOOLEAN InitialOwner
 
_In_ KPRIORITY _In_ BOOLEAN Abandoned
 
_Inout_ PLIST_ENTRY Entry
 
_Out_ PKAPC_STATE ApcState
 
_In_ UCHAR Processor
 
*LockHandle LockHandle _Out_
PKLOCK_QUEUE_HANDLE 
LockHandle
 
_Out_ PULONG UserTime
 
_Requires_lock_held_ Interrupt
_Releases_lock_ Interrupt _In_
_IRQL_restores_ KIRQL 
OldIrql
 
_In_opt_ PVOID Context
 
_In_opt_ PVOID Parameter
 
_In_opt_ PVOID _In_ SIZE_T Size
 
_Out_ PCLIENT_ID ClientId
 
_In_opt_ PVOID CallbackContext
 
_In_opt_ PVOID _In_ ULONG Flags
 
_Out_ PULONG64 CycleTimeStamp
 
_Out_opt_ PGROUP_AFFINITY PreviousAffinity
 
_In_ LARGE_INTEGER _In_ ULONG Period
 
_In_ LARGE_INTEGER _In_ ULONG
_In_ ULONG 
TolerableDelay
 
_In_ LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType
 
_In_
LOGICAL_PROCESSOR_RELATIONSHIP
_Out_writes_bytes_opt_ Length
PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 
Information
 
*Count PHARDWARE_COUNTER CounterArray
 
*Count PHARDWARE_COUNTER _In_ ULONG MaximumCount
 

Macro Definition Documentation

#define KeAcquireSpinLock (   SpinLock,
  OldIrql 
)    *(OldIrql) = KeAcquireSpinLockRaiseToDpc(SpinLock)

Definition at line 210 of file kefuncs.h.

#define KeInitializeCallbackRecord (   CallbackRecord)    CallbackRecord->State = BufferEmpty;

Definition at line 1479 of file kefuncs.h.

Referenced by NdisMRegisterAdapterShutdownHandler().

#define PAGED_CODE ( )    NOP_FUNCTION;

Definition at line 1508 of file kefuncs.h.

#define PAGED_CODE_LOCKED ( )    NOP_FUNCTION;

Definition at line 1509 of file kefuncs.h.

Function Documentation

$endif ( _WDMDDK_  )

Definition at line 202 of file ke.h.

226 {
227  ULONGLONG Low;
228  LONGLONG High;
229 } NEON128, *PNEON128;
Definition: strmini.h:380
int64_t LONGLONG
Definition: typedefs.h:67
uint64_t ULONGLONG
Definition: typedefs.h:66
Definition: strmini.h:378
NEON128
Definition: ke.h:229
* PNEON128
Definition: ke.h:229
$endif ( _NTDDK_  )

Definition at line 2487 of file iofuncs.h.

2495 {
2496  PriorityInfo->Size = sizeof(IO_PRIORITY_INFO);
2497  PriorityInfo->ThreadPriority = 0xffff;
2498  PriorityInfo->IoPriority = IoPriorityNormal;
2499  PriorityInfo->PagePriority = 0;
2500 }
struct _IO_PRIORITY_INFO IO_PRIORITY_INFO
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD _Inout_ PIO_PRIORITY_INFO PriorityInfo
Definition: fltkernel.h:2653
$endif ( _NTIFS_  )

Definition at line 2594 of file iofuncs.h.

2620 {
2621  ASSERT(Irp->CurrentLocation <= Irp->StackCount);
2622  Irp->CurrentLocation++;
2623 #ifdef NONAMELESSUNION
2624  Irp->Tail.Overlay.s.u.CurrentStackLocation++;
2625 #else
2626  Irp->Tail.Overlay.CurrentStackLocation++;
2627 #endif
2628 }
_In_ PIRP Irp
Definition: csq.h:116
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel)?(CompletionRoutine!=NULL):TRUE)
$if ( _WDMDDK_  )

Kernel definitions for AMD64

Kernel definitions for ARM

Definition at line 1 of file ke.h.

31 {
32  ULONG Dummy;
struct _KFLOATING_SAVE KFLOATING_SAVE
struct _KFLOATING_SAVE * PKFLOATING_SAVE
unsigned int ULONG
Definition: retypes.h:1
_Acquires_lock_ ( _Global_critical_region_  )

Definition at line 59 of file Object.c.

64 {
66 
67  /* Try acquiring the lock */
69  {
70  /* Someone changed it, use the slow path */
72  }
73 
74  /* Sanity check */
75  FLT_ASSERT(PushLock->Locked);
76 }
#define InterlockedBitTestAndSet
Definition: interlocked.h:30
VOID FASTCALL ExfAcquirePushLockExclusive(PEX_PUSH_LOCK PushLock)
Definition: pushlock.c:471
#define KeEnterCriticalRegion()
Definition: ke_x.h:83
#define EX_PUSH_LOCK_LOCK_V
Definition: Object.c:28
signed int * PLONG
Definition: retypes.h:5
#define FLT_ASSERT(_e)
Definition: fltkernel.h:49
* LockHandle LockHandle _IRQL_raises_ ( DISPATCH_LEVEL  )
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _IRQL_requires_ ( HIGH_LEVEL  )
_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 30 of file rmap.c.

36 {
38 }
#define TAG_RMAP
Definition: tag.h:133
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1097
#define P(row, col)
Definition: m_matrix.c:147
_IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 37 of file Messaging.c.

48 {
49  PFLT_SERVER_PORT_OBJECT PortObject;
51 
52  /* The caller must allow at least one connection */
53  if (MaxConnections == 0)
54  {
56  }
57 
58  /* The request must be for a kernel handle */
59  if (!(ObjectAttributes->Attributes & OBJ_KERNEL_HANDLE))
60  {
62  }
63 
64  /*
65  * Get rundown protection on the target to stop the owner
66  * from unloading whilst this port object is open. It gets
67  * removed in the FltpServerPortClose callback
68  */
69  Status = FltObjectReference(Filter);
70  if (!NT_SUCCESS(Status))
71  {
72  return Status;
73  }
74 
75  /* Create our new server port object */
76  Status = ObCreateObject(0,
79  KernelMode,
80  NULL,
81  sizeof(FLT_SERVER_PORT_OBJECT),
82  0,
83  0,
84  (PVOID *)&PortObject);
85  if (NT_SUCCESS(Status))
86  {
87  /* Zero out the struct */
88  RtlZeroMemory(PortObject, sizeof(FLT_SERVER_PORT_OBJECT));
89 
90  /* Increment the ref count on the target filter */
92 
93  /* Setup the filter port object */
94  PortObject->Filter = Filter;
98  PortObject->Cookie = ServerPortCookie;
99  PortObject->MaxConnections = MaxConnections;
100 
101  /* Insert the object */
102  Status = ObInsertObject(PortObject,
103  NULL,
105  0,
106  NULL,
108  if (NT_SUCCESS(Status))
109  {
110  /* Lock the connection list */
112 
113  /* Add the new port object to the connection list and increment the count */
116 
117  /* Unlock the connection list*/
119  }
120  }
121 
122  if (!NT_SUCCESS(Status))
123  {
124  /* Allow the filter to be cleaned up */
126  }
127 
128  return STATUS_NOT_IMPLEMENTED;
129 }
DWORD *typedef PVOID
Definition: winlogon.h:52
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _Outptr_ PFLT_PORT * ServerPort
Definition: fltkernel.h:1873
PFLT_CONNECT_NOTIFY ConnectNotify
Definition: fltmgrint.h:177
VOID FLTAPI FltObjectDereference(_Inout_ PVOID Object)
Definition: Object.c:53
#define InsertTailList(ListHead, Entry)
VOID FASTCALL ExReleaseFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:31
ULONG FltpObjectPointerReference(_In_ PFLT_OBJECT Object)
Definition: Object.c:252
LIST_ENTRY mList
Definition: fltmgrint.h:56
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
#define FILE_READ_DATA
Definition: nt_native.h:628
smooth NULL
Definition: ftsmooth.c:513
NTSTATUS NTAPI ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL, IN POBJECT_TYPE Type, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN KPROCESSOR_MODE AccessMode, IN OUT PVOID ParseContext OPTIONAL, IN ULONG ObjectSize, IN ULONG PagedPoolCharge OPTIONAL, IN ULONG NonPagedPoolCharge OPTIONAL, OUT PVOID *Object)
Definition: oblife.c:938
POBJECT_TYPE ServerPortObjectType
Definition: Messaging.c:23
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback
Definition: fltkernel.h:1873
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:411
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback
Definition: fltkernel.h:1873
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: cmd.c:149
NTSTATUS NTAPI ObInsertObject(IN PVOID Object, IN PACCESS_STATE AccessState OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG ObjectPointerBias, OUT PVOID *NewObject OPTIONAL, OUT PHANDLE Handle)
Definition: obhandle.c:2925
LONG NTSTATUS
Definition: DriverTester.h:11
#define STANDARD_RIGHTS_ALL
Definition: nt_native.h:69
VOID FASTCALL ExAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:23
NTSTATUS FLTAPI FltObjectReference(_Inout_ PVOID Object)
Definition: Object.c:41
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID ServerPortCookie
Definition: fltkernel.h:1873
FAST_MUTEX mLock
Definition: fltmgrint.h:55
PFLT_MESSAGE_NOTIFY MessageNotify
Definition: fltmgrint.h:179
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY _In_ LONG MaxConnections
Definition: fltkernel.h:1873
PFLT_DISCONNECT_NOTIFY DisconnectNotify
Definition: fltmgrint.h:178
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback
Definition: fltkernel.h:1873
FLT_MUTEX_LIST_HEAD ConnectionList
Definition: fltmgrint.h:86
_IRQL_requires_max_ ( APC_LEVEL  )
_IRQL_requires_max_ ( HIGH_LEVEL  )

Definition at line 68 of file ke.h.

73 {
74  return (KIRQL)__readcr8();
75 }
__INTRIN_INLINE unsigned long __readcr8(void)
Definition: intrin_x86.h:1615
UCHAR KIRQL
Definition: env_spec_w32.h:591
_IRQL_requires_min_ ( PASSIVE_LEVEL  )
Initial value:
_In_ __drv_strictTypeMatch(__drv_typeCond) KWAIT_REASON WaitReason,
DWORD *typedef PVOID
Definition: winlogon.h:52
_In_ LONG Count
Definition: kefuncs.h:328
_Must_inspect_result_ _In_ WAIT_TYPE WaitType
Definition: fsrtlfuncs.h:1151
#define _In_reads_(size)
Definition: no_sal2.h:228
#define _In_opt_
Definition: no_sal2.h:213
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
smooth NULL
Definition: ftsmooth.c:513
_When_(Wait==0, _IRQL_requires_max_(DISPATCH_LEVEL)) _When_(Wait
#define NTKERNELAPI
#define _Out_opt_
Definition: no_sal2.h:339
unsigned char BOOLEAN
enum _WAIT_TYPE WAIT_TYPE
_In_ BOOLEAN Alertable
Definition: kefuncs.h:283
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
NTSTATUS NTAPI KeWaitForMultipleObjects(IN ULONG Count, IN PVOID Object[], IN WAIT_TYPE WaitType, IN KWAIT_REASON WaitReason, IN KPROCESSOR_MODE WaitMode, IN BOOLEAN Alertable, IN PLARGE_INTEGER Timeout OPTIONAL, OUT PKWAIT_BLOCK WaitBlockArray OPTIONAL)
Definition: wait.c:586
static IUnknown Object
Definition: main.c:512
_MODE
Definition: ketypes.h:10
_Must_inspect_result_ _Maybe_raises_SEH_exception_ _In_ __drv_strictType(KPROCESSOR_MODE/enum _MODE, __drv_typeConst) KPROCESSOR_MODE AccessMode)
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define _In_
Definition: no_sal2.h:204
LONG NTSTATUS
Definition: DriverTester.h:11
static ULONG Timeout
Definition: ping.c:61
#define __drv_strictTypeMatch(mode)
Definition: driverspecs.h:312
enum _KWAIT_REASON KWAIT_REASON
unsigned int ULONG
Definition: retypes.h:1
_Must_inspect_result_ _In_ WAIT_TYPE _In_opt_ PLARGE_INTEGER _In_opt_ PKWAIT_BLOCK WaitBlockArray
Definition: fsrtlfuncs.h:1151
#define APC_LEVEL
Definition: env_spec_w32.h:695
_IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI VOID NTAPI KeClearEvent(_Inout_ PRKEVENT Event)
Definition: rmap.c:30
_Must_inspect_result_ _Post_satisfies_ ( return  = = 1 || return == 0)
_Releases_lock_ ( _Global_critical_region_  )

Definition at line 101 of file Object.c.

106 {
107  EX_PUSH_LOCK OldValue = *PushLock;
108  EX_PUSH_LOCK NewValue;
109 
110  /* Sanity checks */
111  FLT_ASSERT(OldValue.Locked);
112 
113  /* Check if the pushlock is shared */
114  if (OldValue.Shared > 1)
115  {
116  /* Decrease the share count */
117  NewValue.Value = OldValue.Value - EX_PUSH_LOCK_SHARE_INC;
118  }
119  else
120  {
121  /* Clear the pushlock entirely */
122  NewValue.Value = 0;
123  }
124 
125  /* Check if nobody is waiting on us and try clearing the lock here */
126  if ((OldValue.Waiting) ||
127  (ExpChangePushlock(PushLock, NewValue.Ptr, OldValue.Ptr) !=
128  OldValue.Ptr))
129  {
130  /* We have waiters, use the long path */
131  ExfReleasePushLock(PushLock);
132  }
133 
135 }
ULONG_PTR Value
Definition: extypes.h:465
PVOID Ptr
Definition: extypes.h:466
ULONG_PTR Waiting
Definition: extypes.h:460
VOID FASTCALL ExfReleasePushLock(PEX_PUSH_LOCK PushLock)
Definition: pushlock.c:810
#define ExpChangePushlock(x, y, z)
Definition: Object.c:23
ULONG_PTR Shared
Definition: extypes.h:463
#define KeLeaveCriticalRegion()
Definition: ke_x.h:114
#define EX_PUSH_LOCK_SHARE_INC
Definition: Object.c:33
ULONG_PTR Locked
Definition: extypes.h:459
#define FLT_ASSERT(_e)
Definition: fltkernel.h:49
_Requires_lock_held_ ( Number  )
_Must_inspect_result_ _Success_ ( return!  = 0)

Returns the name of an atom.

MSDN: GetRegionData, Return Values:

"If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount. If dwCount is too small or the function fails, the return value is 0. If lpRgnData is NULL, the return value is the required number of bytes.

If the function fails, the return value is zero."

Parameters
atom- The atom to be queried.
pustrName- Pointer to an initialized UNICODE_STRING that receives the name of the atom. The function does not update the Length member. The string is always NULL-terminated.
Returns
The length of the name in characters, or 0 if the function fails.
Note
The function does not aquire any global lock, since synchronisation is handled by the RtlAtom function.

Definition at line 279 of file mapping.c.

289 {
291  PENGSECTION pSection;
292 
293  /* Check parameter */
294  if (cjSize == 0) return NULL;
295 
296  /* Allocate a section object */
297  pSection = EngCreateSectionHack(fl, cjSize, ulTag);
298  if (!pSection)
299  {
300  *ppvSection = NULL;
301  return NULL;
302  }
303 
304  /* Map the section in session space */
305  Status = MmMapViewInSessionSpace(pSection->pvSectionObject,
306  &pSection->pvMappedBase,
307  &pSection->cjViewSize);
308  if (!NT_SUCCESS(Status))
309  {
310  DPRINT1("Failed to map a section Status=0x%x\n", Status);
311  *ppvSection = NULL;
312  EngFreeSectionMem(pSection, NULL);
313  return NULL;
314  }
315 
316  if (fl & FL_ZERO_MEMORY)
317  {
318  RtlZeroMemory(pSection->pvMappedBase, cjSize);
319  }
320 
321  /* Set section pointer and return base address */
322  *ppvSection = pSection;
323  return pSection->pvMappedBase;
324 }
PVOID pvSectionObject
Definition: mapping.h:4
_In_ FLONG fl
Definition: winddi.h:1279
smooth NULL
Definition: ftsmooth.c:513
BOOL APIENTRY EngFreeSectionMem(_In_opt_ PVOID pvSection, _In_opt_ PVOID pvMappedBase)
Definition: mapping.c:246
SIZE_T cjViewSize
Definition: mapping.h:6
PVOID NTAPI EngCreateSectionHack(_In_ ULONG fl, _In_ SIZE_T cjSize, _In_ ULONG ulTag)
Definition: mapping.c:132
#define FL_ZERO_MEMORY
Definition: polytest.cpp:58
Status
Definition: gdiplustypes.h:24
_In_ ULONG _In_ ULONG ulTag
Definition: winddi.h:3941
#define NT_SUCCESS(StatCode)
Definition: cmd.c:149
LONG NTSTATUS
Definition: DriverTester.h:11
#define DPRINT1
Definition: precomp.h:8
_In_ ULONG cjSize
Definition: winddi.h:3634
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
NTSTATUS NTAPI MmMapViewInSessionSpace(IN PVOID Section, OUT PVOID *MappedBase, IN OUT PSIZE_T ViewSize)
Definition: section.c:2989
PVOID pvMappedBase
Definition: mapping.h:5
_When_ ( Wait  = =0,
_IRQL_requires_max_(DISPATCH_LEVEL  
)
* LockHandle LockHandle NTKERNELAPI VOID FASTCALL KeAcquireInStackQueuedSpinLockForDpc ( _Inout_ PKSPIN_LOCK  SpinLock,
_Out_ PKLOCK_QUEUE_HANDLE  LockHandle 
)
NTKERNELAPI DECLSPEC_NORETURN VOID NTAPI KeBugCheck ( _In_ ULONG  BugCheckCode)
NTKERNELAPI DECLSPEC_NORETURN VOID NTAPI KeBugCheckEx ( _In_ ULONG  BugCheckCode,
_In_ ULONG_PTR  BugCheckParameter1,
_In_ ULONG_PTR  BugCheckParameter2,
_In_ ULONG_PTR  BugCheckParameter3,
_In_ ULONG_PTR  BugCheckParameter4 
)

Definition at line 90 of file rtlcompat.c.

Referenced by ClasspReleaseQueue(), CmGetSystemControlValues(), CmGetSystemDriverList(), CmInitSystem1(), CmpHiveRootSecurityDescriptor(), CmpInitializeCache(), CmpInitializeHiveList(), CmpInitializeSystemHive(), CmpLoadHiveThread(), CmpSecurityMethod(), CmpValueToData(), DoCrashCommand(), ExAllocatePoolWithTag(), ExFreePoolWithTag(), ExpCheckPoolAllocation(), ExpCheckPoolBlocks(), ExpCheckPoolHeader(), ExpCheckPoolIrqlLevel(), ExpCheckPoolLinks(), ExpCreateSystemRootLink(), ExpInitializeExecutive(), ExpInitNls(), ExpLoadInitialProcess(), ExpSystemErrorHandler(), ExpWorkerThreadEntryPoint(), ExQueueWorkItem(), ExReleaseResourceForThreadLite(), ExReturnPoolQuota(), ExSetResourceOwnerPointer(), FatiCleanup(), FatiCommonClose(), FatiCreate(), FatiOpenExistingFcb(), FsRtlWorkerThread(), HalInitSystem(), HaliReadMPConfigTable(), HalpAcpiTableCacheInit(), HalpAllocateArray(), HalpCopyBufferMap(), HalpReportResourceUsage(), InitializePool(), IoAssignResources(), IoCancelFileOpen(), IoCancelIrp(), IofCallDriver(), IofCompleteRequest(), IopActionInterrogateDeviceStack(), IopInitializePlugPlayServices(), IopMarkBootPartition(), IopMountVolume(), IopParseDevice(), IopStartRamdisk(), IoReportTargetDeviceChange(), IoReportTargetDeviceChangeAsynchronous(), KeAcquireInStackQueuedSpinLockAtDpcLevel(), KeAcquireQueuedSpinLockAtDpcLevel(), KeAcquireSpinLockAtDpcLevel(), KeAttachProcess(), KefAcquireSpinLockAtDpcLevel(), KefReleaseSpinLockFromDpcLevel(), KeRaiseIrqlToSynchLevel(), KeReleaseInStackQueuedSpinLockFromDpcLevel(), KeReleaseQueuedSpinLockFromDpcLevel(), KeReleaseSpinLockFromDpcLevel(), KeRemoveQueue(), KeRundownThread(), KeStackAttachProcess(), KiDeliverApc(), KiDispatchException(), KiEspToTrapFrame(), KiExitSystemCallDebugChecks(), KiInitializeKernel(), KiInitMachineDependent(), KiSwapContextExit(), KiSwapContextResume(), KiSystemService(), KiUserModeCallout(), MiDecrementReferenceCount(), MiDecrementShareCount(), MiDeletePte(), MiFreeContiguousMemory(), MiInitializePfn(), MiInitializePfnAndMakePteValid(), MiInitializeSessionIds(), MiInsertPageInList(), MiMakeSystemAddressValid(), MiMakeSystemAddressValidPfn(), MiMapPfnDatabase(), MiniResetComplete(), MiRemoveFromSystemSpace(), MiSpecialPoolCheckPattern(), MmAllocateSpecialPool(), MmArmAccessFault(), MmArmInitSystem(), MmCommitSessionMappedView(), MmCreatePageFileMapping(), MmDeterminePoolType(), MmFreePagesFromMdl(), MmFreeSpecialPool(), MmMapLockedPagesSpecifyCache(), MmPageOutSectionView(), MmSetCleanPage(), MmSetDirtyPage(), MmZeroPageThread(), MupDereferenceVcb(), MxGetNextPage(), NdisIPnPStartDevice(), NdisMAllocateSharedMemory(), ObpCloseHandle(), ObpCloseHandleTableEntry(), PciAddDevice(), Phase1InitializationDiscard(), PnpRootAddDevice(), PopShutdownSystem(), PoShutdownBugCheck(), PsInitSystem(), PsLocateSystemDll(), PspCatchCriticalBreak(), PspExitThread(), PspInitializeSystemDll(), PspUnhandledExceptionInSystemThread(), RxAssert(), SeDefaultObjectMethod(), SeInitSystem(), USBPORT_FindUrbInIrpTable(), USBPORT_InsertIrpInTable(), USBPORT_Unload(), vfatInitFcb(), and xHalTranslateBusAddress().

96 {
97  __assume(0);
98 }
_Must_inspect_result_ NTKERNELAPI BOOLEAN NTAPI KeDeregisterBugCheckCallback ( _Inout_ PKBUGCHECK_CALLBACK_RECORD  CallbackRecord)
NTKERNELAPI USHORT NTAPI KeGetCurrentNodeNumber ( VOID  )
NTKERNELAPI ULONG NTAPI KeGetCurrentProcessorNumberEx ( _Out_opt_ PPROCESSOR_NUMBER  ProcNumber)
ULONG NTAPI KeGetProcessorIndexFromNumber ( _In_ PPROCESSOR_NUMBER  ProcNumber)
NTSTATUS NTAPI KeGetProcessorNumberFromIndex ( _In_ ULONG  ProcIndex,
_Out_ PPROCESSOR_NUMBER  ProcNumber 
)
NTKERNELAPI ULONG NTAPI KeGetRecommendedSharedDataAlignment ( VOID  )

Definition at line 481 of file cpu.c.

Referenced by NdisGetSharedDataAlignment().

482 {
483  /* Return the global variable */
484  return KeLargestCacheLine;
485 }
ULONG KeLargestCacheLine
Definition: cpu.c:32
NTKERNELAPI VOID NTAPI KeInitializeDpc ( _Out_ __drv_aliasesMem PRKDPC  Dpc,
_In_ PKDEFERRED_ROUTINE  DeferredRoutine,
_In_opt_ __drv_aliasesMem PVOID  DeferredContext 
)
NTKERNELAPI VOID NTAPI KeInitializeMutex ( _Out_ PRKMUTEX  Mutex,
_In_ ULONG  Level 
)
NTKERNELAPI VOID NTAPI KeInitializeQueue ( _Out_ PRKQUEUE  Queue,
_In_ ULONG  Count 
)
FORCEINLINE VOID KeInitializeSpinLock ( _Out_ PKSPIN_LOCK  SpinLock)

Definition at line 251 of file kefuncs.h.

Referenced by acpi_init(), AcpiOsCreateLock(), AcpiOsCreateSemaphore(), alloc_chunk(), BindAdapterByName(), CcRosInitializeFileCache(), CdfsMountVolume(), CdMountVolume(), CdRomAllocateMmcResources(), CdRomInitDevice(), ChewInit(), ClassCreateDeviceObject(), ClasspAllocateReleaseRequest(), ClassPnpStartDevice(), CreateCdRomDeviceObject(), CreateClassDeviceObject(), CreateDiskDeviceObject(), CreatePartitionDeviceObjects(), CServiceGroup::CServiceGroup(), CTEInitEvent(), DiskInitializeReregistration(), DllInitialize(), DriverEntry(), ExCreateCallback(), ExInitializeResourceLite(), ExpInitializeTimerImplementation(), ExpInitLookasideLists(), ExpResourceInitialization(), FdoStartDevice(), FileOpenAddress(), FileOpenControlChannel(), FreeBT_AddDevice(), FsRtlPrivateLock(), HalInitSystem(), HalpDmaAllocateMasterAdapter(), HalpInitBusHandler(), HalpInitializePciBus(), HalpInitializePciStubs(), HidClass_Create(), HidRegisterMinidriver(), IKsFilterFactory_fnInitialize(), InbvDriverInitialize(), CUSBDevice::Initialize(), CHubController::Initialize(), InitializeDeviceData(), InitializeDictionary(), InitializeMemoryManagement(), InitializePool(), InterlockedPopEntrySList(), IntVideoPortSetupInterrupt(), IoInitializeRemoveLockEx(), IoInitSystem(), IopInitializePlugPlayServices(), IsaAddDevice(), KdbInitialize(), KdpInitDebugLog(), KdpScreenInit(), KdpSerialInit(), KeInitializeDeviceQueue(), KeInitializeInterrupt(), KeInitInterrupts(), KeInitThread(), KiInitializeKernel(), KiInitSpinLocks(), KiInitSystem(), KsAllocateDefaultClockEx(), KsCreateBusEnumObject(), KspCreateFilter(), KspCreatePin(), KsRegisterWorker(), LANRegisterAdapter(), LANRegisterProtocol(), load_chunk_root(), MiInitializeLoadedModuleList(), MmCreateProcessAddressSpace(), MmInitializeBalancer(), MmInitializeHandBuiltProcess(), MmInitPagingFile(), mount_vol(), MsfsCreateMailslot(), NdisAllocatePacketPoolEx(), NdisAllocateSpinLock(), NdisIAddDevice(), NdisInitializeReadWriteLock(), NdisInitializeWrapper(), NdisMCreateLog(), NdisMRegisterInterrupt(), NdisOpenConfiguration(), NdisOpenConfigurationKeyByIndex(), NdisOpenConfigurationKeyByName(), NdisOpenProtocolConfiguration(), NdisRegisterProtocol(), NpInitializeWaitQueue(), NtCreatePagingFile(), NtCreateTimer(), PcAddAdapterDevice(), PcmciaAddDevice(), PcNewInterruptSync(), PoInitSystem(), PortsStartup(), PspCreateThread(), read_data(), RxDriverEntry(), RxInitializeBufferingManager(), RxInitializeDispatcher(), RxInitializeRxTimer(), RxInitializeTopLevelIrpPackage(), RxInitializeWorkQueue(), RxRegisterMinirdr(), ScsiPortInitialize(), SerialAddDeviceInternal(), START_TEST(), sys_init(), sys_mbox_new(), SysAudio_AddDevice(), TCPAllocateConnectionEndpoint(), TcpipInitializeSpinLock(), TestSynchronizeExecution(), UDFInitializeVCB(), UDFInitializeZones(), UpdateDeviceObjects(), USBAudioPinCreate(), USBCCGP_AddDevice(), USBH_CreateDevice(), USBH_StartHubFdoDevice(), USBH_SyncSubmitUrb(), USBPORT_OpenPipe(), USBPORT_RegisterUSBPortDriver(), USBPORT_StartDevice(), USBSTOR_QueueInitialize(), VideoPortCreateSpinLock(), and WdmaudAddDevice().

252 {
253  /* Clear the lock */
254  *SpinLock = 0;
255 }
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
NTKERNELAPI VOID NTAPI KeInitializeThreadedDpc ( _Out_ PRKDPC  Dpc,
_In_ PKDEFERRED_ROUTINE  DeferredRoutine,
_In_opt_ PVOID  DeferredContext 
)
NTKERNELAPI BOOLEAN NTAPI KeInsertQueueDpc ( _Inout_ PRKDPC  Dpc,
_In_opt_ PVOID  SystemArgument1,
_In_opt_ PVOID  SystemArgument2 
)
NTKERNELAPI USHORT NTAPI KeQueryActiveGroupCount ( VOID  )
NTKERNELAPI ULONG NTAPI KeQueryActiveProcessorCountEx ( _In_ USHORT  GroupNumber)
NTKERNELAPI KAFFINITY NTAPI KeQueryGroupAffinity ( _In_ USHORT  GroupNumber)
NTKERNELAPI USHORT NTAPI KeQueryHighestNodeNumber ( VOID  )
NTKERNELAPI USHORT NTAPI KeQueryMaximumGroupCount ( VOID  )
NTKERNELAPI ULONG NTAPI KeQueryMaximumProcessorCountEx ( _In_ USHORT  GroupNumber)
NTKERNELAPI VOID NTAPI KeQueryNodeActiveAffinity ( _In_ USHORT  NodeNumber,
_Out_opt_ PGROUP_AFFINITY  Affinity,
_Out_opt_ PUSHORT  Count 
)
NTKERNELAPI USHORT NTAPI KeQueryNodeMaximumProcessorCount ( _In_ USHORT  NodeNumber)
NTHALAPI LARGE_INTEGER NTAPI KeQueryPerformanceCounter ( _Out_opt_ PLARGE_INTEGER  PerformanceFrequency)
NTKERNELAPI VOID NTAPI KeQuerySystemTime ( _Out_ PLARGE_INTEGER  CurrentTime)
NTKERNELAPI ULONGLONG NTAPI KeQueryUnbiasedInterruptTime ( VOID  )
_Must_inspect_result_ NTKERNELAPI BOOLEAN NTAPI KeRegisterBugCheckCallback ( _Out_ PKBUGCHECK_CALLBACK_RECORD  CallbackRecord,
_In_ PKBUGCHECK_CALLBACK_ROUTINE  CallbackRoutine,
_In_reads_bytes_opt_(Length) PVOID  Buffer,
_In_ ULONG  Length,
_In_ PUCHAR  Component 
)
_Must_inspect_result_ NTKERNELAPI BOOLEAN NTAPI KeRegisterBugCheckReasonCallback ( _Out_ PKBUGCHECK_REASON_CALLBACK_RECORD  CallbackRecord,
_In_ PKBUGCHECK_REASON_CALLBACK_ROUTINE  CallbackRoutine,
_In_ KBUGCHECK_CALLBACK_REASON  Reason,
_In_ PUCHAR  Component 
)
_Kernel_float_restored_ NTKERNELAPI VOID NTAPI KeRestoreExtendedProcessorState ( _In_ _Requires_lock_held_ *_Curr_ _Releases_lock_ *_Curr_ PXSTATE_SAVE  XStateSave)
NTKERNELAPI VOID NTAPI KeSetImportanceDpc ( _Inout_ PRKDPC  Dpc,
_In_ KDPC_IMPORTANCE  Importance 
)
_Must_inspect_result_ NTKERNELAPI NTSTATUS NTAPI KeSetTargetProcessorDpcEx ( _Inout_ PKDPC  Dpc,
_In_ PPROCESSOR_NUMBER  ProcNumber 
)
NTHALAPI VOID NTAPI KeStallExecutionProcessor ( _In_ ULONG  MicroSeconds)

Variable Documentation

Definition at line 606 of file kefuncs.h.

_In_ KPRIORITY _In_ LONG Adjustment

Definition at line 451 of file kefuncs.h.

Referenced by gettimeofday(), KeReleaseSemaphore(), and KiComputeNewPriority().

_In_ BOOLEAN Alertable

Definition at line 283 of file kefuncs.h.

Definition at line 83 of file kefuncs.h.

_Out_ PKAPC_STATE ApcState

Definition at line 679 of file kefuncs.h.

_In_opt_ PVOID CallbackContext

Definition at line 1203 of file kefuncs.h.

Definition at line 904 of file kefuncs.h.

Definition at line 328 of file kefuncs.h.

* Count PHARDWARE_COUNTER CounterArray

Definition at line 1460 of file kefuncs.h.

_Out_ PULONG64 CycleTimeStamp

Definition at line 1226 of file kefuncs.h.

_Inout_ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry

Definition at line 352 of file kefuncs.h.

Referenced by DECLSPEC_ALIGN(), and IoFreeAdapterChannel().

Definition at line 631 of file kefuncs.h.

Definition at line 1203 of file kefuncs.h.

_In_ KDPC_IMPORTANCE Importance

Definition at line 93 of file kefuncs.h.

Referenced by KeSetImportanceDpc().

_In_ KPRIORITY Increment

Definition at line 101 of file kefuncs.h.

_In_ BOOLEAN InitialOwner

Definition at line 590 of file kefuncs.h.

Definition at line 283 of file kefuncs.h.

Definition at line 1460 of file kefuncs.h.

Definition at line 803 of file kefuncs.h.

Referenced by $if(), _ExAcquireFastMutex(), _ExReleaseFastMutex(), _ExTryToAcquireFastMutex(), _MiFlushMappedSection(), _MiWriteBackPage(), acpi_bus_generate_event_dpc(), acpi_bus_receive_event(), AcpiOsAcquireLock(), AcpiOsReleaseLock(), AcpiOsSignalSemaphore(), AcpiOsWaitSemaphore(), AddEntity(), AddrFileFree(), AddrFindShared(), AddrLocateInterface(), AddrSearchFirst(), AddrSearchNext(), AfdCancelHandler(), AfdEventReceive(), AfdEventReceiveDatagramHandler(), AfdSelect(), AllocateAnyPort(), AllocatePort(), AllocatePortFromRange(), BeepCleanup(), CcCopyData(), CcPurgeCacheSection(), CcUninitializeCacheMap(), ChewWorkItem(), ClassCallback(), ClassCancelRoutine(), ClassRead(), ClassStartIo(), ConnectionFree(), CountInterfaces(), CreateDMA(), CTEScheduleEvent(), DeallocatePort(), DereferenceAdapterContextWithOpenEntry(), DestroyPortDriver(), DGDeliverData(), DGReceiveDatagram(), DGRemoveIRP(), DispPrepareIrpForCancel(), DispTdiAssociateAddress(), DispTdiListen(), DispTdiSetEventHandler(), ExAcquireFastMutex(), ExAllocatePoolWithTag(), ExDeleteNPagedLookasideList(), ExDeletePagedLookasideList(), ExFreePoolWithTag(), ExfUnblockPushLock(), ExfWakePushLock(), ExInterlockedCompareExchange64(), ExInterlockedExtendZone(), ExiTryToAcquireFastMutex(), ExNotifyCallback(), ExpAddTagForBigPages(), ExpCheckPoolAllocation(), ExpDeleteTimer(), ExpExpandResourceOwnerTable(), ExpFindAndRemoveTagBigPages(), ExpInsertPoolTracker(), ExpTimerApcKernelRoutine(), ExRegisterCallback(), ExReleaseFastMutex(), Ext2ClearVpbFlag(), Ext2SetVpbFlag(), ExTimerRundown(), ExUnregisterCallback(), FFSClearVpbFlag(), FFSSetVpbFlag(), FileCloseAddress(), FindAdapterContextByName(), FindOnLinkInterface(), FreeDeviceData(), FreeMemoryManagement(), GetContext(), GetDefaultInterface(), GetReassemblyInfo(), GspBreakIn(), HalAllocateAdapterChannel(), HalBeginSystemInterrupt(), HalDisplayString(), HalEndSystemInterrupt(), HaliRegisterBusHandler(), HalpApcInterruptHandler(), HalpDispatchInterrupt2(), HalpDispatchInterruptHandler(), HalpEndSoftwareInterrupt2(), HalpGrowMapBuffers(), HalpGrowMapBufferWorker(), HalpPCIConfig(), HalReadDmaCounter(), HandleReadIrp(), HdlspAcquireGlobalLock(), HdlspDispatch(), i8042RemoveDevice(), ICMPSendDatagram(), InbvAcquireLock(), InbvReleaseLock(), InfoTdiQueryEntityType(), InfoTdiQueryGetAddrTable(), InfoTdiQueryGetRouteTable(), InfoTdiQueryListEntities(), InterfacePciDevicePresent(), InterfacePciDevicePresentEx(), InterlockedPopEntrySList(), InternalWorker(), IoAcquireRemoveLockEx(), IoAllocateDriverObjectExtension(), IoCancelFileOpen(), IoCancelIrp(), IoCancelThreadIo(), IoEnumerateDeviceObjectList(), IoFreeAdapterChannel(), IoFreeMapRegisters(), IoGetDiskDeviceObject(), IoGetDriverObjectExtension(), IoInvalidateDeviceRelations(), IoMapTransfer(), IopAbortInterruptedIrp(), IopCancelRemoveChildDevices(), IopCheckVpbMounted(), IopCloseFile(), IopCreateDeviceNode(), IopDecrementDeviceObjectRef(), IopDeleteFile(), IopDereferenceVpbAndFree(), IopDeviceRelationsWorker(), IopDisassociateThreadIrp(), IopEditDeviceList(), IopFreeDeviceNode(), IopGetDevicePDO(), IopGetErrorLogEntry(), IopGetSystemPowerDeviceObject(), IopMountInitializeVpb(), IopParseDevice(), IopPerformSynchronousRequest(), IopQueryRemoveChildDevices(), IopQueueIrpToThread(), IopReferenceVerifyVpb(), IopRemoveTimerFromTimerList(), IopSendRemoveChildDevices(), IopStartNextPacket(), IopStartNextPacketByKey(), IopTimerDispatch(), IoReleaseRemoveLockEx(), IoStartPacket(), IoStartTimer(), IoStopTimer(), IoUnregisterShutdownNotification(), IPFreeReassemblyList(), IPRegisterInterface(), IRPFinish(), IsaFdoQueryDeviceRelations(), IsaFdoStartDevice(), KbdHid_DispatchInputData(), KdbEnterDebuggerException(), KdDisableDebugger(), KdDisableDebuggerWithLock(), KdEnableDebugger(), KdEnableDebuggerWithLock(), KdpPrintToLogFile(), KdpPrompt(), KdpScreenPrint(), KdpSerialDebugPrint(), KdpTimeSlipWork(), KdRegisterDebuggerDataBlock(), KeAcquireInterruptSpinLock(), KeAcquireQueuedSpinLock(), KeAcquireQueuedSpinLockRaiseToSynch(), KeAcquireSpinLockRaiseToDpc(), KeAcquireSpinLockRaiseToSynch(), KeBoostPriorityThread(), KeBugCheckWithTf(), KeCancelTimer(), KeConnectInterrupt(), KeContextToTrapFrame(), KeDeregisterBugCheckCallback(), KeDeregisterBugCheckReasonCallback(), KeDeregisterNmiCallback(), KeDisconnectInterrupt(), KeFlushEntireTb(), KeGenericCallDpc(), KeInitializeMutant(), KeInsertHeadQueue(), KeInsertQueue(), KeInsertQueueDpc(), KeIpiGenericCall(), KePulseEvent(), KeQueryBasePriorityThread(), KeQueryPerformanceCounter(), KeReadyThread(), KeRegisterBugCheckCallback(), KeRegisterBugCheckReasonCallback(), KeRegisterNmiCallback(), KeReleaseMutant(), KeReleaseSemaphore(), KeResetEvent(), KeRevertToUserAffinityThread(), KeRundownQueue(), KeRundownThread(), KeSetAffinityThread(), KeSetBasePriorityThread(), KeSetEvent(), KeSetEventBoostPriority(), KeSetIdealProcessorThread(), KeSetPriorityThread(), KeSetProcess(), KeSetSystemAffinityThread(), KeSetSystemTime(), KeSetTimerEx(), KeSignalGateBoostPriority(), KeStartProfile(), KeStopProfile(), KeSynchronizeExecution(), KeTrapFrameToContext(), KeyboardDeviceWorker(), KfLowerIrql(), KfRaiseIrql(), KiChainedDispatch(), KiCheckForApcDelivery(), KiCheckForKernelApcDelivery(), KiCheckTimerTable(), KiContinue(), KiDecrementerTrap(), KiDpcInterruptHandler(), KiEspToTrapFrame(), KiExitDispatcher(), KiExitSystemCallDebugChecks(), KiExitV86Trap(), KiInterruptDispatch(), KiInterruptHandler(), KillSelectsForFCB(), KiRetireDpcList(), KiScanReadyQueues(), KiSystemService(), KiTimerExpiration(), KiTrap02(), KiTrap06Handler(), KiTrap0DHandler(), KiUnexpectedInterruptTailHandler(), KsQueueWorkItem(), KsRemoveIrpFromCancelableQueue(), KsUnregisterWorker(), LanAdapterInfo(), LanCloseProtocol(), LanEnumAdapters(), LanSetBufferedMode(), LANTransmit(), LANTransmitInternal(), LANUnregisterAdapter(), LANUnregisterProtocol(), LibTCPGetDataFromConnectionQueue(), LocateAdapterBindingByName(), LogActiveObjects(), LwipThreadMain(), MiAcquireExpansionLock(), MiAllocatePagesForMdl(), MiAllocatePoolPages(), MiBalancerThread(), MiBuildPagedPool(), MiBuildPfnDatabaseFromLoaderBlock(), MiCheckPurgeAndUpMapCount(), MiDeleteARM3Section(), MiDeleteSystemPageableVm(), MiDeleteVirtualAddresses(), MiDereferenceControlArea(), MiDereferenceSessionFinal(), MiDispatchFault(), MiFillSystemPageDirectory(), MiFindContiguousPages(), MiFlushTbAndCapture(), MiFreeContiguousMemory(), MiFreePoolPages(), MiGetPageProtection(), MiGetPteForProcess(), MiInitializeAndChargePfn(), MiInitializePoolEvents(), MiInitMachineDependent(), MiLoadImageSection(), MiMapLockedPagesInUserSpace(), MiniCheckForHang(), MiniDoRequest(), MiniIndicateData(), MiniIndicateReceivePacket(), MiniIsBusy(), MiniLocateDevice(), MiniportCloseEndpoint(), MiniportOpenEndpoint(), MiniportWorker(), MiniQueueWorkItem(), MiniRequestComplete(), MiniReset(), MiniResetComplete(), MiniSendComplete(), MiniStatus(), MiniStatusComplete(), MiniTransferDataComplete(), MiProcessLoaderEntry(), MiProcessValidPteList(), MiProtectVirtualMemory(), MiReadFilePage(), MiReleaseProcessReferenceToSessionDataPage(), MiReleaseSystemPtes(), MiRemoveMappedPtes(), MiRemoveMappedView(), MiReserveAlignedSystemPtes(), MiSegmentDelete(), MiSessionAddProcess(), MiSessionCommitPageTables(), MiSessionCreateInternal(), MiSessionInitializeWorkingSetList(), MiSessionLeader(), MiSessionRemoveProcess(), MiSetControlAreaSymbolsLoaded(), MiUnmapLockedPagesInUserSpace(), MiZeroPhysicalPage(), MmAllocPage(), MmArmAccessFault(), MmCreateArm3Section(), MmCreateCacheSection(), MmCreateKernelStack(), MmCreateProcessAddressSpace(), MmDeleteKernelStack(), MmDeleteProcessAddressSpace(), MmDeleteProcessAddressSpace2(), MmDereferencePage(), MmDumpArmPfnDatabase(), MmFinalizeSegment(), MmFreeLoaderBlock(), MmFreeMemoryArea(), MmFreePagesFromMdl(), MmGetLRUFirstUserPage(), MmGetLRUNextUserPage(), MmGetPhysicalMemoryRanges(), MmGetSessionById(), MmGrowKernelStackEx(), MmInitializeProcessAddressSpace(), MmInsertLRULastUserPage(), MmNotPresentFaultCachePage(), MmPageOutSectionView(), MmProbeAndLockPages(), MmRemoveLRUUserPage(), MmUnlockPages(), MmZeroPageThread(), MouHid_DispatchInputData(), MountMgrChangeNotify(), MountMgrCleanup(), MountMgrNotify(), MyAllocatePool(), MyFreePool(), NBAddNeighbor(), NBCopyNeighbors(), NBDestroyNeighborsForInterface(), NBLocateNeighbor(), NBQueuePacket(), NBRemoveNeighbor(), NBResetNeighborTimeout(), NBShutdown(), NBUpdateNeighbor(), NdisMAllocateMapRegisters(), NdisMCancelTimer(), NdisMCloseLog(), NdisMCreateLog(), NdisMFlushLog(), NdisMFreeMapRegisters(), NdisMQueryInformationComplete(), NdisMSetInformationComplete(), NdisMSetPeriodicTimer(), NdisMSetTimer(), NdisMSetupDmaTransfer(), NdisReturnPackets(), NduDispatchRead(), NpAddWaiter(), NpCancelWaiter(), NpCancelWaitQueueIrp(), NpTimerDispatch(), NtCancelIoFile(), NtCancelTimer(), NtQueryInformationFile(), NtQueryInformationThread(), NtSetInformationFile(), NtSetTimer(), NtYieldExecution(), OpenDeviceReadWrite(), PcIoTimerRoutine(), PcRegisterIoTimeout(), PcUnregisterIoTimeout(), PdoPnpControl(), PollReeval(), PoNotifySystemTimeSet(), PopGetDope(), PoRemoveVolumeDevice(), PostOnlineNotification(), ProcessFragment(), ProIndicatePacket(), ProSend(), ProtocolTransferDataComplete(), ProTransferData(), PspDestroyQuotaBlock(), PspInsertQuotaBlock(), PspUserThreadStartup(), QSI_DEF(), QueryBinding(), QueueWorkItem(), RawCheckForDismount(), RawIPSendDatagram(), ReadWritePassive(), RemoveEntityByContext(), RemoveIPDR(), RfsdClearVpbFlag(), RfsdSetVpbFlag(), RouterCreateRoute(), RouterGetRoute(), RouterRemoveRoute(), RouterRemoveRoutesForInterface(), RouterShutdown(), RxAddToTopLevelIrpAllocatedContextsList(), RxAddToWorkque(), RxCancelNotifyChangeDirectoryRequestsForFobx(), RxCancelNotifyChangeDirectoryRequestsForVNetRoot(), RxCompleteRequest_Real(), RxCompleteSrvOpenKeyAssociation(), RxCreateRxContext(), RxCreateSrvCallCallBack(), RxDereferenceAndDeleteRxContext_Real(), RxFinishSrvCallConstructionDispatcher(), RxFsdCommonDispatch(), RxGatherRequestsForSrvOpen(), RxInsertWorkQueueItem(), RxIsMemberOfTopLevelIrpAllocatedContextsList(), RxpDispatchChangeBufferingStateRequests(), RxPostOneShotTimerRequest(), RxpWorkerThreadDispatcher(), RxRemoveFromTopLevelIrpAllocatedContextsList(), RxRemoveOverflowEntry(), RxSpinUpRequestsDispatcher(), RxSpinUpWorkerThread(), ScsiPortInitialize(), SelectTimeout(), SendOnlineNotificationWorker(), SermouseDeviceWorker(), SetAddressFileInfo(), START_TEST(), sys_arch_mbox_fetch(), TCPAbortListenForSocket(), TCPAccept(), TCPAcceptEventHandler(), TCPClose(), TCPConnect(), TCPDisconnect(), TCPFinEventHandler(), TCPGetSockAddress(), TCPListen(), TCPRemoveIRP(), TCPSendData(), TCPSocket(), Tests_Insert_And_Delete(), TiUnload(), UDPSendDatagram(), UnbindAdapterByContext(), USBH_FdoIdleNotificationCallback(), USBH_FdoQueryBusRelations(), USBH_FdoWWIrpIoCompletion(), USBH_HubQueuePortWakeIrps(), USBH_SelectConfigOrInterfaceComplete(), USBH_SyncIrpComplete(), USBH_UrbTimeoutDPC(), USBH_Worker(), USBHI_RootHubInitNotification(), USBPORT_CancelActiveTransferIrp(), USBPORT_CancelPendingTransferIrp(), USBPORT_CancelPendingWakeIrp(), USBPORT_ClosePipe(), USBPORT_CompletePdoWaitWake(), USBPORT_CompleteTransfer(), USBPORT_DeleteEndpoint(), USBPORT_DmaEndpointActive(), USBPORT_DmaEndpointPaused(), USBPORT_DoIdleNotificationCallback(), USBPORT_DoneTransfer(), USBPORT_FindCompanionControllers(), USBPORT_FindMiniPort(), USBPORT_FindUSB2Controller(), USBPORT_FlushAllEndpoints(), USBPORT_FlushCancelList(), USBPORT_FlushClosedEndpointList(), USBPORT_FlushController(), USBPORT_FlushDoneTransfers(), USBPORT_FlushMapTransfers(), USBPORT_FlushPendingTransfers(), USBPORT_HandleGetCurrentFrame(), USBPORT_InvalidateEndpointHandler(), USBPORT_MiniportInterrupts(), USBPORT_NukeAllEndpoints(), USBPORT_OpenPipe(), USBPORT_PdoPower(), USBPORT_QueueActiveUrbToEndpoint(), USBPORT_RemoveDeviceHandle(), USBPORT_RemoveUSBxFdo(), USBPORT_RestoreDevice(), USBPORT_ResumeController(), USBPORT_RootHubClassCommand(), USBPORT_RootHubEndpointWorker(), USBPORT_RootHubStandardCommand(), USBPORT_SetEndpointState(), USBPORT_SignalWorkerThread(), USBPORT_TimerDpc(), USBPORT_ValidateDeviceHandle(), USBPORT_WorkerThread(), USBPORT_WorkerThreadHandler(), VdmEndExecution(), VdmpStartExecution(), VfatCheckForDismount(), VideoPortCompleteDma(), VideoPortStartDma(), VideoPortSynchronizeExecution(), WaitForOnlinesToComplete(), WdmAudCleanup(), and WorkerThread().

Definition at line 533 of file kefuncs.h.

Definition at line 1071 of file kefuncs.h.

_Out_opt_ PGROUP_AFFINITY PreviousAffinity

Definition at line 1252 of file kefuncs.h.

Definition at line 53 of file kefuncs.h.

Definition at line 1342 of file kefuncs.h.

Definition at line 1071 of file kefuncs.h.

_In_ ULONG SortKey

Definition at line 352 of file kefuncs.h.

Referenced by KeInsertByKeyDeviceQueue(), and Tests_Insert_And_Delete().

Definition at line 26 of file kefuncs.h.

Definition at line 1268 of file kefuncs.h.

Definition at line 26 of file kefuncs.h.

_Out_ PULONG UserTime

Definition at line 784 of file kefuncs.h.

Referenced by NtQueryInformationProcess().

Definition at line 101 of file kefuncs.h.