本文介绍了Linux设备驱动程序3rd Ed和3.2内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道3.2内核主要是一个进化的步骤,但是我想为正在研究的项目使用一些简单的设备驱动程序. Linux设备驱动程序3rd Ed(Corbet,Rubini和Kroah-Hartman,O'Reilly)中的信息是否仍然与2.6或3.2的处理方式有很大不同?人们总体上对这本书有什么看法?

I understand the 3.2 kernel is mostly an evolutionary step, but I'd like to play around with some simple device drivers for a project I'm working on. Is the info in Linux Device Drivers 3rd Ed (Corbet, Rubini and Kroah-Hartman, O'Reilly) still germane or are there major differences between how 2.6 and 3.2 do things? What do people think of this book in general?

推荐答案

我喜欢LDD3.教学风格出众.我在SO,LWN等中看到了对该文本的最多引用.

I like LDD3. The teaching style is outstanding. I see the most references to that text in SO, LWN etc.

我尝试阅读它,但价值有限.最好建立并运行示例,播放一些示例.使用scull,然后努力研究文本,以查看代码的实际工作方式.

I tried just reading it, that had limited value. It was better to get the examples built and running, play some e.g. with scull, then study the text hard to see how the code was really working.

但是,要使用现代内核做到这一点,您需要更新的代码.我发现 martinezjavier 代码使用3.1内核构建良好(我从Makefile中删除了tty,并添加了simple_open()定义),那么生活就很棒.我还从 cs.fsu ,包括在线交叉引用.

But, to do that with modern kernels, you need updated code. I found martinezjavier code built OK with 3.1 kernel (I deleted tty from Makefile, and added simple_open() definition) then life was great. Also I found some nice work from cs.fsu, including online cross-reference.

Cooperstein 文本也存在,并且具有练习具有多个内核版本的解决方案,但是我没有使用此文本.

Cooperstein text also exists, and has exercise solutions with multiple kernel versions, but I haven't used this text.

这篇关于Linux设备驱动程序3rd Ed和3.2内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 12:10