1
0
SWNote/Linux/Linux_Device_Driver_Model.md
2021-08-08 23:15:06 +08:00

39 lines
836 B
Markdown
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Device Driver Model Introduction
看到最容易理解的关于 Device-Driver Model 的一句话是乃至为什么要使用Device Driver Model网上有人总结得很精辟统一了编写设备驱动的格式使驱动开发从论述题变为填空体从而简化了设备驱动的开发.
# kobject , kset & ktype
# Device Driver Bus Class
ref:
[Linux Device Driver Model](<https://freemandealer.github.io/2016/09/01/device-driver-linux-device-driver/>)
# 4. [Linux RCU](<https://zhuanlan.zhihu.com/p/89439043>)
RCU (Read Copy Update) , 设置了一个临界区域,在 read 的同时,可以进行 copy 操作, 或者说read和进行copy的线程并行,目的是为了update。
省去了同步机制, 提高了效率。
![rcu](../img/rcu.jpg)