- 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.
推薦閱讀
- Linux設備驅動開發詳解:基于最新的Linux4.0內核
- Linux運維之道(第3版)
- 嵌入式Linux開發技術
- Containerization with LXC
- 從零開始寫Linux內核:一書學透核心原理與實現
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- 嵌入式Linux系統開發:基于Yocto Project
- 開源安全運維平臺OSSIM疑難解析:入門篇
- 嵌入式Linux應用開發菜鳥進階
- Kali Linux 2018:Windows Penetration Testing
- Windows Server 2012網絡操作系統項目教程(第4版)
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- iOS 8開發指南
- 大學計算機應用基礎實踐教程(Windows 7+MS Office 2010)
- Raspberry Pi Networking Cookbook