Chinaunix首页 | 论坛 | 博客
  • 博客访问: 69996
  • 博文数量: 15
  • 博客积分: 602
  • 博客等级:
  • 技术积分: 172
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-07 13:35
文章分类

全部博文(15)

文章存档

2011年(8)

2010年(2)

2009年(5)

分类: LINUX

2009-12-03 13:32:38

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) |
给主人留下些什么吧!~~