本文介绍了在Linux内核空间执行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想在 Linux 内核空间中执行用户程序(而不是内核模块),我有哪些选择?
If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have?
我已经看过 KML(内核模式 linux),但这是特定于 IA-32 架构的.我想要一个跨平台的解决方案,可以在嵌入式 linux 系统上工作.
I have looked at KML(kernel mode linux) but that is specific to IA-32 architecture. I want a solution which is cross platform and can work on embedded linux systems.
推荐答案用户程序不在内核空间中执行 - 这就是使它们成为用户程序的原因.
User programs don't execute in kernel space - that's what makes them user programs.
如果您想在内核空间中执行代码,您有两个选择:将其构建到内核中,或者使用内核模块加载它.
If you want to execute code in kernel space you have two options: build it in to the kernel, or load it with a kernel module.
更多推荐
在Linux内核空间执行程序
发布评论