Chinaunix

标题: Dynamic device handling[转] [打印本页]

作者: deargodzw    时间: 2009-12-03 13:32
标题: Dynamic device handling[转]
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
• ...
原文链接:http://people.freedesktop.org/~david/talks/dynamic-device-handling-OLS-2006.pdf
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/103900/showart_2110147.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2