Differences between revisions 3 and 4
Revision 3 as of 2006-02-21 22:50:45
Size: 1338
Editor: ?HugoVanwoerkom
Comment:
Revision 4 as of 2006-02-22 13:06:53
Size: 1382
Editor: ?HugoVanwoerkom
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
Udev and hal use sysfs to do their work.

This page was created in the hopes that some kinds soul would fill it out to give an overview of how devices are managed in linux and Debian in particular. What I have written is a rough sketch of my understanding which is lacking greatly.

I'd like to see questions like "where can I specify a script to be run when I plug in my camera or flash drive?" answered here. Is this best handled by in the hal or with the hotplug subsystem.

Device Management Overview

Kernel

Kernel and kernel modules drive the devices.

/dev

Entries in /dev give access to the devices the kernel drives. Entries here can be made by hand using command line utilities, or by a automated utility such as DevFS or ["udev"].

What should be accomplished in DevFS/["udev"] configurations?

hal

["hal"] provides an abstraction layer to the hardware so that programs can refer to a device type instead of specific device. Eg digital camera as opposed to Sony DSC-08

sysfs

Sysfs is a virtual file system provided by the 2.6 Linux kernel. Sysfs exports information about devices and drivers from the kernel device model to userspace, and is also used for configuration. See http://en.wikipedia.org/wiki/Sysfs

Udev and hal use sysfs to do their work.

hotplug

manages usb, pcmcia and other hotpluggable devices.


CategoryHardware