IoGetDeviceAttachmentBaseRefWithTag

_DEVICE_OBJECT *__stdcall IoGetDeviceAttachmentBaseRefWithTag(_DEVICE_OBJECT *DeviceObject, UINT64 Tag){
  INT64 v2; 
  unsigned int v4; 
  UINT8 v5; 
  _DEVICE_OBJECT *DeviceAttachmentBase; 

  v4 = Tag;
  v5 = KeAcquireQueuedSpinLock(10i64, Tag, v2);
  DeviceAttachmentBase = IopGetDeviceAttachmentBase(DeviceObject);
  ObfReferenceObjectWithTag(DeviceAttachmentBase, v4);
  KeReleaseQueuedSpinLock(LockQueueIoDatabaseLock, v5);
  return DeviceAttachmentBase;
}

Referenced by:

FsRtlAcquireFileForModWriteEx
FsRtlReleaseFileForModWrite
IoGetDeviceAttachmentBaseRef
IopMarkBootPartition
IopQueryInterfaceRecurseUp
PiControlGetDeviceStack
PnpHandleEnumerateHandlesAgainstPdoStack
PoDirectedDripsNotifyPagingDeviceUsage
PoSetSystemWakeDevice
PoStoreRequester
PoThermalCounterSetCallback
PopAllocateIrp
PopCheckAndHandleThermalConditions
PopCheckThermalPolicy
PopDiagTraceActiveCooling
PopDiagTraceCoolingExtension
PopDiagTracePassiveCooling
PopDiagTraceThermalCoolingMode
PopDiagTraceThermalStateChange
PopDiagTraceThermalZoneEnumeration
PopDiagTraceThermalZoneThrottleDurationPerfTrack
PopDiagTraceThermalZoneThrottlePerfTrack
PopDiagTraceZoneCriticalTripPointExceeded
PopDiagTraceZoneS4TripPointExceeded
PopDirectedDripsNotifyTransitionFailed
PopFxRegisterDevice
PopNotifyDevice
PopScanIdleList
PopSqmThermalCriticalEvent
PopThermalTraceRundownEvents
PopTraceThermalRequestActiveActivity
PopTraceThermalRequestPassiveHistogram
PopTraceThermalZoneActiveActivity
PopTraceThermalZonePassiveHistogram
PopTraceZoneCr3Mitigated
PopTraceZoneCr3Tripped
SmKmEtwAppendObjectName