kernel 2.6 後的 driver model 增加了以下的能力:
- Power Management and System Shutdown -- 確保 device driver 在系統 power off 和 shutdown 之前都能獲得通知。
- Communication with User Space -- sysfs
- Hotpluggable Devices
- Devices Classes
- Object Lifecycle
Bus, Device, Class
Kobject, Ksets
Ksets 是 Kobject 的 container
sysfs mount 在 /sys 負責 kernel 的 subsystem,每個 subsystem 都有自己的 Ksets.
sysfs 就是在處理 Kobject.
udev 把所有資訊藉由 sysfs 公布在 user space。
hotplug 就是由 Kobject 的加入/移除 所引發的。
沒有留言:
張貼留言