- Linux Device Driver Development Cookbook
- Rodolfo Giometti
- 175字
- 2021-06-24 13:54:16
Getting ready
To realize our first char driver, we need the module presented in the previous chapter. This is because using kernel modules is the simplest method we have to inject code into kernel space. Of course, we can decide to compile our driver as built in to the kernel but, in this manner, we have to fully recompile the kernel and reboot our system each time we have to modify the code (it's a possibility but definitely not the best!).
Just a note before carrying on: to provide a clearer explanation regarding how a char driver works and to present a really simple example, I decided to use the legacy way to register a char driver into the kernel. There's nothing to be concerned about, since this mode of operation is perfectly legal and still supported and, in any case, in the Using a device tree to describe a character driver recipe, in Chapter 4, Using the Device Tre e , I'm going to present the currently advised way of registering char drivers.
推薦閱讀
- 操作系統(tǒng)實用教程(Linux版)
- 30天自制操作系統(tǒng)
- Citrix XenApp Performance Essentials
- Windows Vista基礎(chǔ)與應(yīng)用精品教程
- Getting Started with oVirt 3.3
- Kubernetes網(wǎng)絡(luò)權(quán)威指南:基礎(chǔ)、原理與實踐
- 混沌工程實戰(zhàn):手把手教你實現(xiàn)系統(tǒng)穩(wěn)定性
- Ceph分布式存儲實戰(zhàn)
- Linux內(nèi)核設(shè)計的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計與實現(xiàn)原理
- HTML5 Enterprise Application Development
- Learn SwiftUI
- 鴻蒙HarmonyOS手機應(yīng)用開發(fā)實戰(zhàn)
- Linux系統(tǒng)管理初學者指南:基于CentOS 7.6
- Windows 8完全自學手冊
- Mastering Azure Serverless Computing