【问题标题】:Linux 4.4 kernel changesLinux 4.4 内核更改
【发布时间】:2016-12-24 07:35:21
【问题描述】:

上个月发布了 Sles12 sp2。在这个版本中,使用的是 4.4 linux 内核,而在 sles12sp1 中,内核版本是 3.12。 很明显,sles12 sp2内核(即4.4内核)中添加了如此多的功能和代码更改。

我为 3.12 内核编写了一个驱动程序;现在我想让我的驱动程序适用于 4.4 内核。一种方法是为 4.4 内核编译驱动程序代码并修复编译错误。但是我想弄清楚 3.12 和 4.4 内核之间的确切变化是什么,以便在我的驱动程序中有效地利用 4.4 内核的新功能。

我在哪里可以找到 3.12 和 4.4 内核之间的更改以及如何使我的驱动程序轻松有效地适用于 4.4 内核?

【问题讨论】:

  • 一一修复错误。这是实现结果的最简单方法。顺便说一句,您确定没有适用于您的情况的 ustream 驱动程序吗?

标签: linux linux-kernel linux-device-driver embedded-linux


【解决方案1】:

我会使用 git 来显示更改。你可以从https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git克隆上游git树

然后你可以使用如下命令:

git log (-p) v3.12..v4.4 -- (paths that you are interested in)
tig v3.12..v4.4
git diff v3.12..v4.4 -- (paths that you are interested in)

您可以从https://kernelnewbies.org/LinuxVersions?action=show&redirect=Linux26Changes阅读有关更改

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-10-05
    • 1970-01-01
    • 1970-01-01
    • 2012-11-18
    • 2016-04-23
    • 1970-01-01
    • 2016-01-10
    • 2021-07-30
    相关资源
    最近更新 更多