What is Hot plugging?
Connecting and disconnecting devices with power on while the OS automatically recognizes or detaches them. Used with USB, server SSDs and more.
Field: I/O Interfaces & Buses
Read the beginner explainer: What Is USB? USB-C vs USB 3, USB4 and Power Delivery
Japanese name: ホットプラグ
Protecting devices at the moment of insertion
When a connector is mated with power on, current can flow into a circuit through a signal pin if the pins touch in the wrong order, and a large inrush current can flow into the device's capacitors. Hot-pluggable connectors therefore use pins of different lengths, so that ground and power make contact first and the signal pins connect afterward. PCI Express cards use short pins that make contact last to detect that the card is fully inserted. In server power and drive slots, a hot-swap controller limits the inrush current.
Recognition and removal by the OS
Once the electrical connection is made, the OS has to find the device and make it usable. In USB 2.0 the device pulls one of the data lines up through a resistor, and the hub detects the connection from that change in voltage. The host then resets the device, assigns it an address, reads its descriptors and loads a suitable driver (enumeration). For removal, it is safest to tell the OS first so that pending writes are completed and the driver is detached before the device is unplugged. Drivers must also be able to treat an unannounced removal as an error and recover.
Versus hot swapping and plug and play
Hot swapping usually refers to replacing parts such as server disks or power supplies without stopping the system, and the term is often used almost interchangeably with hot plugging. Plug and play means automatic recognition and configuration of devices, which is a separate question from whether they can be connected with power on. Hot plugging needs support from the connector and power circuitry as well as from the OS and drivers; if any part is missing, it does not work. Memory modules in ordinary PCs, for example, cannot be inserted or removed with power on.
Try it: questions about Hot plugging
- AA function that automatically cuts power when a device gets hot
- BDevices can be connected and disconnected with power on, and the OS recognizes or detaches them automatically
- CA function that always reboots the computer when a device is plugged in
Show answer and explanation
Answer: B. Devices can be connected and disconnected with power on, and the OS recognizes or detaches them automatically
Interfaces that support hot plugging protect devices during connection and removal with power on, using contact sequencing and current limiting, and the OS discovers new devices and loads drivers. Besides USB, it is used with PCI Express when swapping server SSDs, with SATA and others. Telling the OS before removal so that pending writes are completed is important for protecting data.
Books on I/O Interfaces & Buses Ad
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.
Back to the glossary