设备、文件描述符与驱动程序
输入输出设备
- 文件描述符
- 指向操作系统对象的 “指针”
- Everything is a file
- 通过指针可以访问 “一切”
- 对象的访问都需要指针
- open, close, read/write (解引用), lseek (指针内赋值/运算), dup (指针间赋值)
- 指向操作系统对象的 “指针”
- 系统调用创建文件对象。
- rules.d规则。udev
- udisk2
- 输入输出设备就是能与 cpu 交换数据的接口
- 给寄存器 “赋予” 一个内存地址 (Address Decoder)
- CPU 可以直接使用指令 (in/out/MMIO) 和设备交换数据
- 是的,就这么简单
- GPIO
- 使用Memory-Mapping的方式访问
[1]Kroenke K, Spitzer RL. The PHQ-9: A new depression and diagnostic severity measure. Psychiatr Ann. 2002; 32:509–21. https://doi.org/10.3928/0048-5713-20020901-06 [2]Ware JE, Kosinski M, Keller SD. SF 12: How to score the SF12 physical and mental health summary scales. Boston, Massachusetts: New England Medical Centre; 1995. [3]Spitzer RL, Kroenke K, Williams JBW, Lowe B. A Brief Measure for Assessing Generalized Anxiety Disorder: The GAD-7. Arch Intern Med. 2006; 166(10):1092–7. https://doi.org/10.1001/archinte.166.10. 1092 PMID: 16717171 [4]De Jong-Gierveld J, Kamphuls F. The development of a Rasch-type loneliness scale. Appl Psychol Measur. 1985;9(3):289–99. https://doi.org/10.1177/014662168500900307 [5]Pasterfield M, Bailey D, Hems D, McMillan D, Richards D, Gilbody S. Adapting manualized Behavioural Activation treatment for older adults with depression. Cogn Behav Thera. 2014; 7:e5. https://doi.org/10. 1017/S1754470X14000038 [6]Kroenke K, Spitzer RL. The PHQ-9: A new depression and diagnostic severity measure. Psychiatr Ann. 2002; 32:509–21. https://doi.org/10.3928/0048-5713-20020901-06 [7]Spitzer RL, Kroenke K, Williams JBW, Lowe B. A Brief Measure for Assessing Generalized Anxiety Disorder: The GAD-7. Arch Intern Med. 2006; 166(10):1092–7. https://doi.org/10.1001/archinte.166.10. 1092 PMID: 16717171 [8]De Jong-Gierveld J, Kamphuls F. The development of a Rasch-type loneliness scale. Appl Psychol Measur. 1985;9(3):289–99. https://doi.org/10.1177/014662168500900307 [9]Ware JE, Kosinski M, Keller SD. SF 12: How to score the SF12 physical and mental health summary scales. Boston, Massachusetts: New England Medical Centre; 1995. [10]Henry JD, Crawford JR. The short-form version of the Depression Anxiety Stress Scales (DASS-21): Construct validity and normative data in a large non-clinical sample. Br J Clin Psychol. 2005; 44(2):227– 39.