简体   繁体   English

Linux内核模块:在运行时动态加载代码

[英]Linux Kernel Module: dynamically loading code at runtime

Is there a way to dynamically load compiled c-code in a linux-kernel-module at run-time? 有没有一种方法可以在运行时在linux-kernel-module中动态加载已编译的c代码? I am looking for something like dlopen from libdl . 我正在从libdl寻找类似dlopen东西。

Yes. 是。 Move the code into another modules and then create a dependency to that other module in yours. 将代码移到另一个模块中,然后在您的另一个模块中创建一个依赖关系。

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

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