HalpGetDynamicDevicePointer

PVOID HalpGetDynamicDevicePointer(){
  PVOID v0; 
  if( !HalpDynamicDevicesReady )
    return 0i64;
  KeWaitForSingleObject(&HalpDynamicDeviceInterfaceLock, WrExecutive, 0, 0, 0i64);
  v0 = HalpDynamicDevices;
  if( HalpDynamicDevices )
    ObfReferenceObject(HalpDynamicDevices);
  KeSetEvent(&HalpDynamicDeviceInterfaceLock, 0);
  return v0;
}

Referenced by:

HalpArmAcpiWakeAlarm
HalpQueryAcpiRealTimeClock
HalpQueryAcpiWakeAlarmSystemPowerState
HalpSetAcpiRealTimeClock