Linux Kernel Launches Hardware Management Features - page 3
Preparing for Liftoff
HAL, the Hardware Abstraction Layer, maintains a database of devices on your system. You can see this by running the lshal command, which spews forth much output:
$ lshal [...] udi = '/org/freedesktop/Hal/devices/pnp_PNP0303' info.udi = '/org/freedesktop/Hal/devices/pnp_PNP0303' ... linux.subsystem = 'pnp' (string) linux.hotplug_type = 1 (0x1) (int) info.product = 'IBM Enhanced (101/102-key, PS/2 mouse ... [...] Dumped 112 device(s) from the Global Device List. ------------------------------------------------
You can play with lshal a bit by putting it in monitor mode:
$ lshal --monitor Start monitoring devicelist:Then plug in and remove devices to see what happens.
Perhaps you are wondering why we need HAL when we already have dmesg? HAL contains a lot more information about hardware than the kernel does. The kernel doesn't need to know all that stuff; it has other jobs to do. You saw how much data HAL holds on your devices. Where does it all come from? From querying the hardware, from the kernel, from various system files, and from information collected by your desktop. In a nutshell, anything on your system that needs hardware information simply asks HAL.
- Skip Ahead
- 1. Preparing for Liftoff
- 2. Preparing for Liftoff
- 3. Preparing for Liftoff
- 4. Preparing for Liftoff
- 5. Preparing for Liftoff
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.