How does all this work?
• kernel
• udev
• HAL
• D-BUS
• User session
1.The kernel discovers the device and
exports its state in sysfs
2.udev receives the events over netlink
3.udev creates device nodes, runs modprobe and other programs, and passes the event over a socket to the HAL daemon
4.HAL receives the event, investigates the device, and creates a representation in
its own device tree
5.HAL merges properties into the device object from
• what the kernel knows
• poking the device
• the system configuration
• hardware databases
• quirks
• information
• user space drivers
6.HAL uses D-BUS to tell all subscribed listeners about the new device
7.The user session reacts
• starts programs
• configures device according to user
settings
• shows icons
• running programs update their user
interface
• ...
原文链接:~david/talks/dynamic-device-handling-OLS-2006.pdf
阅读(1302) | 评论(0) | 转发(0) |