Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

share|improve this answer
udev is the binary right? I wanted to know which modules in the source code take care of hot-pluggability. – Arpith Oct 4 '12 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 '12 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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