ubuntu - 如何找到特定版本的Ubuntu对应的内核源码?

标签 ubuntu linux-kernel

最近在研究无线网络,为了达到我的实验目的,必须对mac80211_hwsim做一些修改,但是找不到具体版本的Ubuntu对应的内核源码?如果有人能告诉我如何解决这个问题,这将很有帮助。谢谢!
lihui@ubuntu:~$ modinfo mac80211_hwsim filename: /lib/modules/3.16.0-30-generic/kernel/drivers/net/wireless/mac80211_hwsim.ko license: GPL description: Software simulator of 802.11 radio(s) for mac80211 author: Jouni Malinen srcversion: FEC587C589C9B337D559437 depends: mac80211,cfg80211 intree: Y vermagic: 3.16.0-30-generic SMP mod_unload modversions signer: Magrathea: Glacier signing key sig_key: 7B:E2:A7:20:0F:17:F0:0C:A0:11:F7:0E:5A:87:4C:37:E3:E0:F6:BE sig_hashalgo: sha512 parm: radios:Number of simulated radios (int) parm: channels:Number of concurrent channels (int) parm: paged_rx:Use paged SKBs for RX instead of linear ones (bool) parm: rctbl:Handle rate control table (bool) parm: support_p2p_device:Support P2P-Device interface type (bool) parm: regtest:The type of regulatory test we want to run (int) lihui@ubuntu:~$ uname -a Linux ubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

最佳答案

使用以下命令获取当前系统内核的来源:

sudo apt-get source linux-source

There is a good reference with more details .

关于ubuntu - 如何找到特定版本的Ubuntu对应的内核源码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32292789/

相关文章:

用于 gps 模块的 Linux 设备驱动程序

linux - Linux内核模块驱动中THIS_MODULE的意义是什么?

sockets - Linux内核TCP Socket修改

ARM 中的 Linux Process Context 和 SVC 调用

ubuntu - 为什么俄语字符显示不正确?

ubuntu - 如何为每个用户配置msmtprc

sql-server - 从 Ubuntu 将 Python 连接到 SQL Server

python - 从 Ubuntu 15.04 中删除 Mercurial-common

php - 如何创建 pyserial 网络服务?

linux - 英特尔处理器如何访问 Branch Trace Store 缓冲区?