在Linux内核空间执行程序

编程入门 行业动态 更新时间:2024-10-27 20:25:06
本文介绍了在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内核空间执行程序

本文发布于:2023-10-07 14:51:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469687.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:内核   程序   空间   Linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!