| Previous | Next |
| STATUS_FLOAT_MULTIPLE_TRAPS | STATUS_JOURNAL_DELETE_IN_PROGRESS |
STATUS_DEVICE_REMOVED
The request lost its physical device instance
PnP surprise removal can occur before applications close handles and before all queued I/O finishes. Drivers must stop touching hardware, fail or complete outstanding requests, disable interfaces and retain enough software state to process the later remove request safely. Existing file objects do not make the hardware remain present.
Applications should treat the handle as invalid for future hardware access and wait for a new interface arrival. Drivers must distinguish surprise removal from orderly query-remove so they do not wait forever for hardware completion that can no longer occur.
What to inspect
- Capture the removal notification, outstanding requests and last successful hardware access.
- Verify the driver stops DMA, interrupts and register access immediately after surprise removal.
- Close stale handles and reopen only after the replacement device interface is announced.
References
- Microsoft: Handling surprise removal
- Microsoft: Removing a device
- Microsoft: PnP device states
- Microsoft Open Specifications: NTSTATUS values
- ReactOS source: IRP allocation and completion
Looking for a different code? Search another status or error code.