Dynamic device handling[转]

1323阅读 0评论2009-12-03 deargodzw
分类:LINUX

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


上一篇:制作tar系统的shell脚本--My tools
下一篇:网卡设备名称的问题