Azitech

Azimout's Linux weblog

hotplugging

leave a comment »

when a device is plugged into your system, here’s what happens:

  1. the kernel notices, and adds an entry under /sys (sysfs)
  2. udev is notified by the kernel through a uevent, and creates an entry under /dev, matching the sysfs entry with the rules under /etc/udev/rules.d, and loads the related driver (modprobe)
  3. HAL is notified and adds the related information to its database (accessible via lshal)

To see a list of your hardware, run sudo lshw -short

References: Wikipedia.org, KernelNewbies.org

Advertisements

Written by azimout

25/01/2009 at 18:20

Posted in Reference

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: