c - Linux 内核模块 : dynamically loading code at runtime

标签 c linux module kernel

有没有办法在运行时在 linux 内核模块中动态加载已编译的 C 代码? 我正在寻找来自 libdl 的类似 dlopen 的东西。

最佳答案

是的。将代码移动到另一个模块中,然后在您的模块中创建对另一个模块的依赖。

关于c - Linux 内核模块 : dynamically loading code at runtime,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11933752/

相关文章:

python - 如何使用 Python 将自定义 linux stdout 粘贴到 JSON 中?

c - 打开终端并使用c语言在打开的终端中执行命令

python - "import __hello__"是如何工作的?

python - 导入模块在 Jupyter Notebook 中有效,但在 IDLE 中无效

iphone - ejabberd mod_offline iPhone推送通知

c - 如何将int64_t分成两个int32_t通过网络发送?

c - 如何在C中返回ascii字符的索引

java - 如何将文件从 Windows 服务器路径复制/传输到 Linux 服务器路径?

c - short 或 char(整数)的字面量

c - 使用 VS2010 构建的可执行文件在 System32 中找不到 DLL