KeResetEvent

MDL *__stdcall KeResetEvent(VOID *VirtualAddress, UINT64 Length, UINT8 SecondaryBuffer, UINT8 ChargeQuota, IRP *Irp){
  unsigned __int8 CurrentIrql; 
  unsigned int v7; 
  UINT64 SpinCount; 
  CurrentIrql = KeGetCurrentIrql();
  __writecr8(2ui64);
  LODWORD(SpinCount) = 0;
  while( _interlockedbittestandset((volatile signed __int32 *)VirtualAddress, 7u) )
  {
    do
      KeYieldProcessorEx(&SpinCount);
    while( (*(_DWORD *)VirtualAddress & 0x80u) != 0 );
  }
  v7 = *((_DWORD *)VirtualAddress + 1);
  *((_DWORD *)VirtualAddress + 1) = 0;
  _InterlockedAnd((volatile signed __int32 *)VirtualAddress, 0xFFFFFF7F);
  __writecr8(CurrentIrql);
  return(MDL *)v7;
}

Referenced by:

AnFwDisplayFade
ArbArbiterHandler
BuildQueryDirectoryIrp
CcUnmapVacbArray
CmUnloadKey
CmUnregisterMachineHiveLoadedNotification
CmpLinkHiveToMaster
CmpLockRegistryFreezeAware
DbgkpRemoveErrorPort
EtwpCovSampCaptureContextStop
EtwpCovSampCaptureWorkerThread
EtwpLogger
EtwpStopTrace
EtwpSynchronizeWithLogger
ExUnregisterCallback
IoCancelFileOpen
IoRegisterFsRegistrationChangeMountAware
IoSetInformation
IoShutdownSystem
IopCancelIrpsInThreadList
IopCreateArcName
IopDeleteFile
IopFreeBandwidthContract
IopGetBootDiskInformation
IopGetSetSecurityObject
IopInvalidateVolumesForDevice
IopMountVolume
IopQueryXxxInformation
IopSendMessageToTrackService
IopShutdownBaseFileSystems
IopXxxControlFile
MiDereferenceSegmentThread
MiDrainCrossPartitionUsage
MiInitializePagedPoolEvents
MiIssueSynchronousFlush
MiMarkSessionDeletePending
MiModifiedPageWriter
MiProcessDereferenceList
MiQueueWorkingSetRequest
MiRetryNonPagedAllocation
MiSignalNonPagedPoolWatchers
MiStoreEvictThread
MiSyncCommitSignals
MiTrimUnusedPageFileRegionsWorker
MiUpdateAvailableEvents
MiWaitForAvailablePages
MiWaitForFreePage
MiWaitForFreePagesToZero
MmStoreFlushOutstandingEvictions
NtClearEvent
NtLockFile
NtNotifyChangeDirectoryFileEx
NtNotifyChangeMultipleKeys
NtReadFile
NtReadFileScatter
NtResetEvent
NtSetInformationJobObject
NtSetVolumeInformationFile
NtWaitForDebugEvent
NtWriteFile
NtWriteFileGather
PfGenerateTrace
PfTInitialize
PfTLoggingWorker
PfpScenCtxPrefetchWait
PfpScenCtxQueryScenarioInformation
PnpInsertEventInQueue
PnpLockDeviceActionQueue
PnpRequestDeviceAction
PoUnregisterPowerSettingCallback
PopCheckPowerSourceAfterRtcWakeSet
PopFxAllocatePowerIrp
PopFxIdleWorker
PopFxIssueComponentPerfStateChanges
PopFxUpdateVetoMaskWork
PopNewWakeInfo
PopPepUpdateConstraints
PopPowerAggregatorSystemTransitionExitStateHandler
PopQueueBatteryStatusTimeout
PopSetSystemAwayMode
PopThermalReadCounters
PopUpdateWatchdogNoWorkersEvent
RawQueryFsSizeInfo
SMKM_STORE::SmStReadThread
SMKM_STORE::SmStWorker
SMKM_STORE_MGR::SmCompressCtxBalancerThread
SMKM_STORE_MGR::SmCompressCtxWorkerThread
SPCallServerHandleQueryPolicy
SPCallServerHandleWaitForDisplayWindow
SmKmStoreHelperWaitForCommand
SmKmStoreHelperWorker
TtmiRetrieveEventFromQueue
WdtpTimerCallback
WmipCopyFromEventQueues
sub_1405BC6E0
sub_140961F8C