- 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.
推薦閱讀
- pcDuino開(kāi)發(fā)實(shí)戰(zhàn)
- 零起點(diǎn)學(xué)Linux系統(tǒng)管理
- Mobile-first Bootstrap
- Puppet實(shí)戰(zhàn)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程(Windows 7+Office 2013)
- Windows Phone應(yīng)用程序開(kāi)發(fā)
- 注冊(cè)表應(yīng)用完全DIY
- 計(jì)算機(jī)系統(tǒng):基于x86+Linux平臺(tái)
- ElasticSearch Cookbook
- 計(jì)算機(jī)系統(tǒng)的自主設(shè)計(jì)
- Python UNIX和Linux系統(tǒng)管理指南
- μC/OS-III內(nèi)核實(shí)現(xiàn)與應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)指南:基于STM32
- Linux 從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- Docker容器技術(shù)與應(yīng)用
- Learn Quantum Computing with Python and IBM Quantum Experience