简体   繁体   English

我是否需要内核源代码进行模块编程?

[英]Do I need the kernel source for module programming?

I am trying to get into kernel module programming. 我正在尝试进入内核模块编程。 After some research, I am in a bit of confusion. 经过一番研究,我有点困惑。 My question is, do I need a kernel source for doing module programming? 我的问题是,我是否需要内核源来进行模块编程?

Also if yes, do I need to recompile the kernel after I have compiled the modules I have written? 如果是的话,在编译完我编写的模块后,是否需要重新编译内核?

Do I need a kernel source for doing module programming ? 我需要内核源代码来进行模块编程吗?

You need the kernel header files, normally I use: $ sudo apt-get install build-essential linux-headers-$(uname -r) 你需要内核头文件,通常我使用:$ sudo apt-get install build-essential linux-headers - $(uname -r)

Also if yes, Do I need to recompile the kernel after I have compiled the modules I have written ? 同样如果是,编译了我编写的模块后,是否需要重新编译内核?

No 没有

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM