Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers 2

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. –  Iain Dawson Oct 4 '12 at 12:22
add comment

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
add comment

Your Answer

 
discard

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.