Could someone shed more light on the code/modules that are responsible for the hot-pluggabilty of the hardware used in Linux machines?

2 Answers 2


You probably want to look into udev. There's a similar question on Ask Ubuntu.

  • udev is the binary right? I wanted to know which modules in the source code take care of hot-pluggability.
    – Arpith
    Oct 4, 2012 at 12:00
  • It depends on the type of device. USB device additions and removals are detected by the USB driver, which notifies udev about changes.
    – colons
    Oct 4, 2012 at 12:22

The answer from Iain Dawson covers the userland part. In the kernel proper the handling of hotplug is integrated all over the place. Some infrastructure is present in the base kernel, but hotplugging has to be handled in each device driver, so there is no set of modules responsible for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.