• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

d0u9/Linux-Device-Driver: Advanced examples of Linux Device Drivers (LDD3) and d ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

d0u9/Linux-Device-Driver

开源软件地址(OpenSource Url):

https://github.com/d0u9/Linux-Device-Driver

开源编程语言(OpenSource Language):

C 86.0%

开源软件介绍(OpenSource Introduction):

Linux-Device-Driver

Examples of Linux Device Drivers, currently for kernel 5.10.

Before start

The examples in this repo are compiled against Linux Kernel 5.10. Other versions of the Kernel are not tested.

Set KERNELDIR environment variable to the Linux kernel source dir, and export it to your local shell.

export KERNELDIR=/path/to/kernel/source/

This environment variable is mainly used in Makefile to determine which kernel source tree the drivers are built against.

Introduction

This repo demonstrates basic examples of Linux Device Driver(LDD) for the purpose of studying and sharing.

Some of the examples in this repo are excepted from the book of LDD3(Linux Device Drivers, Third Edition), and the other examples are written by myself in necessary to illustrate some important data structures or details.

LDD3 is a great book, which is authored by Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman, I give my sincere appreciation to all these authors for their great work.

LDD3 is available online, and you may request a copy of the PDF from https://lwn.net/Kernel/LDD3/. It is still an excellent book to reference for the development of Linux device module. However, due to its old age, first published in 2005, some of the APIs and data structures have drastically changed after its first publication.

Compare to the Kernel 2.6.10, which is the base of the LDD3 book, I rewrite all the examples for a brand new Kernel version 5.10, released in December 2020. Besides the kernel version, the hardware also has evolved a lot in recent years. The parallel port, which is used as an example in I/O operations in LDD3, can be barely found in any computer now. I moved these examples to a QEMU(A generic and open source machine emulator and virtualizer) virtual machine, in which a virtual parallel port device is implemented for convenient debugging.

This is the opening of my whole project, I hope you will enjoy in the tour of reading my book.

Thanks a lot.

Sincerely, Douglas.


License

Linux-Device-Driver by d0u9 is licensed under a GNU General Public License, version 2.


¶ The end




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
0oVicero0/OneDrive: [Linux] OneDrive for Business发布时间:2022-08-15
下一篇:
stec-inc/EnhanceIO: EnhanceIO Open Source for Linux发布时间:2022-08-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap