Linux 设备模型
- Linux Device Model — The Linux Kernel documentation
- Linux Device Model — Linux Kernel Labs
- 统一设备模型 - 蜗窝科技
- 【Linux 内核|驱动模型】bus/class/device/driver - 知乎
device
driver
class
bus
subsystem
cpp
subsys_system_register()
subsys_register(subsys, groups, &system_kset->kobj)
bus_register(subsys)
struct device *dev = kzalloc(sizeof(struct device), GFP_KERNEL);
1
2
3
4
2
3
4